rollerworks/sf-container-injector
A Symfony component that injects services from the container into objects and controllers, enabling lazy setter-based dependency injection without constructor wiring. Useful for legacy code and optional dependencies.
rollerworks/sf-container-injector is a lightweight Symfony helper that brings annotation-driven service injection to your controllers. Instead of wiring every dependency through constructors, you can request services directly where they're used — keeping controllers small and focused on the action at hand.
It integrates cleanly with Symfony's service container, so the services you inject remain fully configured, lazy-loadable, and testable. The result is less boilerplate and clearer intent, without sacrificing the container's guarantees.
How can I help you explore Laravel packages today?