@@ -14,35 +14,35 @@ In some particular cases where a very heavy service is always requested,
1414but not always used, you may want to mark it as ``lazy `` to delay its instantiation.
1515
1616In order to have services to lazily instantiate, you will first need to install
17- the `ProxyManager bridge `_::
17+ the `ProxyManager bridge `_:
1818
19- php composer.phar require symfony/proxy-manager-bridge:2.3.*
19+ ..code-block ::bash
20+ $ php composer.phar require symfony/proxy-manager-bridge:2.3.*
2021
2122 You can mark the service as ``lazy `` by manipulating its definitions:
2223
23-
2424..configuration-block ::
2525
2626 ..code-block ::yaml
2727
2828services :
2929foo :
30- class :Example \Foo
30+ class :Acme \Foo
3131lazy :true
3232
3333 ..code-block ::xml
3434
35- <service id =" foo" class =" Example \Foo" lazy =" true" />
35+ <service id =" foo" class =" Acme \Foo" lazy =" true" />
3636
3737 ..code-block ::php
3838
39- $definition = new Definition('Example \Foo');
39+ $definition = new Definition('Acme \Foo');
4040 $definition->setLazy(true);
4141 $container->setDefinition('foo', $definition);
4242
4343 You can then require the service from the container::
4444
45- $service = $container->get($serviceId );
45+ $service = $container->get('foo' );
4646
4747At this point the retrieved ``$service `` should be a virtual `proxy `_ with the same
4848signature of the class representing the service.
@@ -55,10 +55,9 @@ signature of the class representing the service.
5555The proxy gets initialized and the actual service is instantiated as soon as you interact
5656in any way with this object.
5757
58- Additionalresources
58+ AdditionalResources
5959--------------------
6060
61-
6261You can read more about how proxies are instantiated, generated and initialized in
6362the `documentation of ProxyManager `_.
6463