Registry / utility / symfony-dependency-injection

symfony-dependency-injection

JSON →
library8.0.5phppackagistunverified

Allows you to standardize and centralize the way objects are constructed in your application

composer require symfony/dependency-injection
INSTALL
IMPORT
SIG · SYMFONY-DEPENDENCY
S
symfony-dependency-injection
utilityphpv8.0.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ContainerBuilder
use Symfony\Component\DependencyInjection\ContainerBuilder;

Create a container and register a service.

use Symfony\Component\DependencyInjection\ContainerBuilder; $container = new ContainerBuilder(); $container->register('logger', 'Monolog\Logger')->addArgument('app'); $logger = $container->get('logger');
Debug
Known issues
gotchaAutowiring requires explicit configuration for complex types
fix
Use autowiring attributes or explicit service definitions for interfaces
affects: >=4.0
Upgrade
Version history
8.0.5latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
symfony-dependency-injection — pip install symfony-dependency-injection · libregistry