Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Sf Container Injector

Sf Container Injector Laravel Package

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.

View on GitHub
Deep Wiki
Context7

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.

  • Inject services straight into controller actions using annotations
  • Reduces constructor boilerplate for thin, single-purpose controllers
  • Built on Symfony's native service container
  • Works alongside existing constructor and setter injection
  • Keeps services lazily resolved and easy to mock in tests
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings