Skip to content

Commit fc41042

Browse files
committed
minor symfony#27922 [DependencyInjection] fix typo in ContainerBuilder docblock (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- [DependencyInjection] fix typo in ContainerBuilder docblock | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 559cdb0 fix typo in ContainerBuilder docblock
2 parents 881c46a + 559cdb0 commit fc41042

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,10 +493,10 @@ public function get($id, $invalidBehavior = ContainerInterface::EXCEPTION_ON_INV
493493
* the parameters passed to the container constructor to have precedence
494494
* over the loaded ones.
495495
*
496-
* $container = new ContainerBuilder(array('foo' => 'bar'));
496+
* $container = new ContainerBuilder(new ParameterBag(array('foo' => 'bar')));
497497
* $loader = new LoaderXXX($container);
498498
* $loader->load('resource_name');
499-
* $container->register('foo', new stdClass());
499+
* $container->register('foo', 'stdClass');
500500
*
501501
* In the above example, even if the loaded resource defines a foo
502502
* parameter, the value will still be 'bar' as defined in the ContainerBuilder

0 commit comments

Comments
 (0)