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

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