Fabien Potencier a10fee16c1 merged branch igorw/dic-yaml-without-args (PR #3747) vor 13 Jahren
..
Compiler 4316595dbb fixed CS vor 13 Jahren
Dumper 9441c46bb6 [DependencyInjection] PhpDumper, fixes #2730 vor 13 Jahren
Exception 3e2f1a4b13 Removed executable bits from all php files vor 14 Jahren
Extension 97cb35b47a [DependencyInjection] tagged the public @api vor 14 Jahren
Loader a10fee16c1 merged branch igorw/dic-yaml-without-args (PR #3747) vor 13 Jahren
ParameterBag a894431c6c [DependencyInjection] Allow parsing of parameters near escaped percent signs vor 13 Jahren
Alias.php 97cb35b47a [DependencyInjection] tagged the public @api vor 14 Jahren
Container.php e3421a0b1d [DoctrineBridge] fixed some CS vor 13 Jahren
ContainerAware.php 97cb35b47a [DependencyInjection] tagged the public @api vor 14 Jahren
ContainerAwareInterface.php 97cb35b47a [DependencyInjection] tagged the public @api vor 14 Jahren
ContainerBuilder.php 4316595dbb fixed CS vor 13 Jahren
ContainerInterface.php e3421a0b1d [DoctrineBridge] fixed some CS vor 13 Jahren
Definition.php e3421a0b1d [DoctrineBridge] fixed some CS vor 13 Jahren
DefinitionDecorator.php 80f0b980ba [DependencyInjection] Fix DefinitionDecorator::getArgument() for replacements vor 13 Jahren
LICENSE 89868f7901 Updated LICENSE files copyright vor 13 Jahren
Parameter.php 97cb35b47a [DependencyInjection] tagged the public @api vor 14 Jahren
README.md 997f354d53 tweaked the README files vor 13 Jahren
Reference.php 2c3e9adcd1 [DependencyInjection] Made the reference case insensitive vor 13 Jahren
Scope.php 97cb35b47a [DependencyInjection] tagged the public @api vor 14 Jahren
ScopeInterface.php 97cb35b47a [DependencyInjection] tagged the public @api vor 14 Jahren
SimpleXMLElement.php e3421a0b1d [DoctrineBridge] fixed some CS vor 13 Jahren
TaggedContainerInterface.php 97cb35b47a [DependencyInjection] tagged the public @api vor 14 Jahren
Variable.php 1aabc5da64 fixed CS vor 14 Jahren
composer.json 208c2e468c removed the version attribute in all composer.json files vor 13 Jahren

README.md

DependencyInjection Component

DependencyInjection manages your services via a robust and flexible Dependency Injection Container.

Here is a simple example that shows how to register services and parameters:

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Reference;

$sc = new ContainerBuilder();
$sc
    ->register('foo', '%foo.class%')
    ->addArgument(new Reference('bar'))
;
$sc->setParameter('foo.class', 'Foo');

$sc->get('foo');

Resources

Unit tests:

https://github.com/symfony/symfony/tree/master/tests/Symfony/Tests/Component/DependencyInjection