fix typo in ContainerBuilder docblock

This commit is contained in:
Christian Flothmann 2018-07-11 10:13:25 +02:00
parent 881c46aadd
commit 559cdb01bd

View File

@ -493,10 +493,10 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
* the parameters passed to the container constructor to have precedence * the parameters passed to the container constructor to have precedence
* over the loaded ones. * over the loaded ones.
* *
* $container = new ContainerBuilder(array('foo' => 'bar')); * $container = new ContainerBuilder(new ParameterBag(array('foo' => 'bar')));
* $loader = new LoaderXXX($container); * $loader = new LoaderXXX($container);
* $loader->load('resource_name'); * $loader->load('resource_name');
* $container->register('foo', new stdClass()); * $container->register('foo', 'stdClass');
* *
* In the above example, even if the loaded resource defines a foo * In the above example, even if the loaded resource defines a foo
* parameter, the value will still be 'bar' as defined in the ContainerBuilder * parameter, the value will still be 'bar' as defined in the ContainerBuilder