Skip to content

Commit bc94cfd

Browse files
Migrate from container-interop to psr/container (#21)
* Migrate from container-interop to psr/container Replace the abandoned container-interop/container-interop dependency with psr/container ^1|^2. Update all use statements from Interop\Container\ContainerInterface to Psr\Container\ContainerInterface. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Fix CI: remove --no-dev from framework-tests composer install The framework-tests project (Naktibalda/codeception-mezzio-tests) references Mezzio\Tooling\ConfigProvider in its config/config.php, but mezzio/mezzio-tooling is a require-dev dependency. Using --no-dev skips its installation, causing the ConfigAggregator to fail with "class cannot be loaded". Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8aeaaab commit bc94cfd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
submodules: recursive
3030

3131
- name: Install Mezzio Sample
32-
run: composer update --no-dev --prefer-dist --no-interaction
32+
run: composer update --prefer-dist --no-interaction
3333
working-directory: framework-tests
3434

3535

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"php": "^8.0",
1616
"codeception/lib-innerbrowser": "^3.0 | ^4.0",
1717
"codeception/codeception": "^5.0.8",
18-
"container-interop/container-interop": "^1.2",
18+
"psr/container": "^1 | ^2",
1919
"laminas/laminas-diactoros": "^2.0 || ^3.0",
2020
"mezzio/mezzio": "^3.0"
2121
},

src/Codeception/Lib/Connector/Mezzio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Codeception\Configuration;
88
use Exception;
9-
use Interop\Container\ContainerInterface;
9+
use Psr\Container\ContainerInterface;
1010
use Laminas\Diactoros\ServerRequest;
1111
use Laminas\Diactoros\UploadedFile;
1212
use Mezzio\Application;

src/Codeception/Module/Mezzio.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Codeception\Lib\Interfaces\DoctrineProvider;
1010
use Codeception\TestInterface;
1111
use Doctrine\ORM\EntityManagerInterface;
12-
use Interop\Container\ContainerInterface;
12+
use Psr\Container\ContainerInterface;
1313
use Mezzio\Application;
1414
use PHPUnit\Framework\AssertionFailedError;
1515
use Symfony\Component\BrowserKit\AbstractBrowser;
@@ -33,7 +33,7 @@
3333
* ## Public properties
3434
*
3535
* * application - instance of `\Mezzio\Application`
36-
* * container - instance of `\Interop\Container\ContainerInterface`
36+
* * container - instance of `\Psr\Container\ContainerInterface`
3737
* * client - BrowserKit client
3838
*
3939
*/

0 commit comments

Comments
 (0)