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

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