Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency container docs: "Your container MUST implement these required services." #3376

Open
fulldecent opened this issue Mar 18, 2025 · 0 comments

Comments

@fulldecent
Copy link

In the dependency container documentation it says:

Your container MUST implement these required services. If you use Slim’s built-in container, these are provided for you. If you choose a third-party container, you must define these required services on your own.

...

But I have been using my own custom \Psr\Container\ContainerInterface implementation wired in with:

AppFactory::setContainer($container);
$app = AppFactory::create();

where it does NOT comply with any of the documented requirements and for years I have had no problems.


Perhaps we can remove that documented requirement, or we can explain how PHP Slim uses each of those "requirements".

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

No branches or pull requests

1 participant