Skip to content

Migrate from container-interop to psr/container#21

Merged
Slamdunk merged 2 commits intoCodeception:masterfrom
luiscunhaafricainternetgroup:migrate-psr-container
Apr 8, 2026
Merged

Migrate from container-interop to psr/container#21
Slamdunk merged 2 commits intoCodeception:masterfrom
luiscunhaafricainternetgroup:migrate-psr-container

Conversation

@luiscunhaafricainternetgroup
Copy link
Copy Markdown
Contributor

Summary

The container-interop/container-interop package is abandoned and pinned to psr/container ^1.0, which prevents projects from using psr/container ^2.0.

This PR replaces the deprecated dependency with psr/container ^1|^2 and updates all use statements from Interop\Container\ContainerInterface to the standard Psr\Container\ContainerInterface.

Changes

  • composer.json: Replace container-interop/container-interop: ^1.2 with psr/container: ^1 | ^2
  • src/Codeception/Module/Mezzio.php: Update use statement and docblock reference
  • src/Codeception/Lib/Connector/Mezzio.php: Update use statement

This is a backwards-compatible change since Interop\Container\ContainerInterface was just an alias for Psr\Container\ContainerInterface.

Fixes #19. Supersedes #20.

🤖 Generated with Claude Code

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>
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>
@luiscunhaafricainternetgroup
Copy link
Copy Markdown
Contributor Author

Hi @Naktibalda @Slamdunk, this PR migrates from the deprecated container-interop/container-interop to psr/container (fixes #19, supersedes #20). It also fixes the CI workflow which was failing due to --no-dev skipping
mezzio/mezzio-tooling. Would appreciate a review when you get a chance. Thanks!

@Slamdunk Slamdunk merged commit bc94cfd into Codeception:master Apr 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

usage of PSR-11?

2 participants