|
1 | 1 | ..index:: |
2 | | - single: Using ParametersWithin A Dependency Injection Class |
| 2 | + single: Using Parameterswithin a Dependency Injection Class |
3 | 3 |
|
4 | | -Using ParametersWithin A Dependency Injection Class |
| 4 | +Using Parameterswithin a Dependency Injection Class |
5 | 5 | ---------------------------------------------------- |
6 | 6 |
|
7 | 7 | You have seen how to use configuration parameters within |
8 | | -:ref:`Symfony servicecontainer<book-service-container-parameters>`. |
| 8 | +:ref:`Symfony servicecontainers<book-service-container-parameters>`. |
9 | 9 | There are special cases such as when you want, for instance, to use the |
10 | 10 | ``%kernel.debug%`` parameter to make the services in your bundle enter |
11 | 11 | debug mode. For this case there is more work to do in order |
@@ -146,14 +146,14 @@ And set it in the constructor of ``Configuration`` via the ``Extension`` class:: |
146 | 146 |
|
147 | 147 | ..sidebar::Setting the Default in the Extension |
148 | 148 |
|
149 | | -There are some instances of ``%kernel.debug%`` usage within a ``Configurator`` |
150 | | -class in TwigBundle and AsseticBundle, however this is because the default |
151 | | -parameter value is set by the Extension class. For example in AsseticBundle, |
152 | | -you can find:: |
| 149 | +There are some instances of ``%kernel.debug%`` usage within a ``Configurator`` |
| 150 | +class in TwigBundle and AsseticBundle, however this is because the default |
| 151 | +parameter value is set by the Extension class. For example in AsseticBundle, |
| 152 | +you can find:: |
153 | 153 |
|
154 | | - $container->setParameter('assetic.debug', $config['debug']); |
| 154 | +$container->setParameter('assetic.debug', $config['debug']); |
155 | 155 |
|
156 | | -The string ``%kernel.debug%`` passed here as an argument handles the |
157 | | -interpreting job to the container which in turn does the evaluation. |
158 | | -Both ways accomplish similar goals. AsseticBundle will not use |
159 | | -anymore ``%kernel.debug%`` but rather the new ``%assetic.debug%`` parameter. |
| 156 | +The string ``%kernel.debug%`` passed here as an argument handles the |
| 157 | +interpreting job to the container which in turn does the evaluation. |
| 158 | +Both ways accomplish similar goals. AsseticBundle will not use |
| 159 | +anymore ``%kernel.debug%`` but rather the new ``%assetic.debug%`` parameter. |