Skip to content

Commit 1143ebb

Browse files
committed
fix typo in ContainerBuilder docblock
1 parent d9a2f2d commit 1143ebb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)