@@ -64,10 +64,10 @@ A very simple extension may just load configuration files into the container::
6464
6565 class AcmeDemoExtension implements ExtensionInterface
6666 {
67- public function load(array $configs, ContainerBuilder $container )
67+ public function load(array $configs, ContainerBuilder $containerBuilder )
6868 {
6969 $loader = new XmlFileLoader(
70- $container ,
70+ $containerBuilder ,
7171 new FileLocator(__DIR__.'/../Resources/config')
7272 );
7373 $loader->load('services.xml');
@@ -135,7 +135,7 @@ are loaded::
135135The values from those sections of the config files are passed into the first
136136argument of the ``load() `` method of the extension::
137137
138- public function load(array $configs, ContainerBuilder $container )
138+ public function load(array $configs, ContainerBuilder $containerBuilder )
139139 {
140140 $foo = $configs[0]['foo']; //fooValue
141141 $bar = $configs[0]['bar']; //barValue
@@ -161,7 +161,7 @@ you could access the config value this way::
161161 use Symfony\Component\Config\Definition\Processor;
162162 // ...
163163
164- public function load(array $configs, ContainerBuilder $container )
164+ public function load(array $configs, ContainerBuilder $containerBuilder )
165165 {
166166 $configuration = new Configuration();
167167 $processor = new Processor();
@@ -222,13 +222,13 @@ The processed config value can now be added as container parameters as if
222222it were listed in a ``parameters `` section of the config file but with the
223223additional benefit of merging multiple files and validation of the configuration::
224224
225- public function load(array $configs, ContainerBuilder $container )
225+ public function load(array $configs, ContainerBuilder $containerBuilder )
226226 {
227227 $configuration = new Configuration();
228228 $processor = new Processor();
229229 $config = $processor->processConfiguration($configuration, $configs);
230230
231- $container ->setParameter('acme_demo.FOO', $config['foo']);
231+ $containerBuilder ->setParameter('acme_demo.FOO', $config['foo']);
232232
233233 // ...
234234 }
@@ -237,14 +237,14 @@ More complex configuration requirements can be catered for in the Extension
237237classes. For example, you may choose to load a main service configuration
238238file but also load a secondary one only if a certain parameter is set::
239239
240- public function load(array $configs, ContainerBuilder $container )
240+ public function load(array $configs, ContainerBuilder $containerBuilder )
241241 {
242242 $configuration = new Configuration();
243243 $processor = new Processor();
244244 $config = $processor->processConfiguration($configuration, $configs);
245245
246246 $loader = new XmlFileLoader(
247- $container ,
247+ $containerBuilder ,
248248 new FileLocator(__DIR__.'/../Resources/config')
249249 );
250250 $loader->load('services.xml');
@@ -295,11 +295,11 @@ method is called by implementing
295295 {
296296 // ...
297297
298- public function prepend(ContainerBuilder $container )
298+ public function prepend(ContainerBuilder $containerBuilder )
299299 {
300300 // ...
301301
302- $container ->prependExtensionConfig($name, $config);
302+ $containerBuilder ->prependExtensionConfig($name, $config);
303303
304304 // ...
305305 }
@@ -326,7 +326,7 @@ compilation::
326326
327327 class AcmeDemoExtension implements ExtensionInterface, CompilerPassInterface
328328 {
329- public function process(ContainerBuilder $container )
329+ public function process(ContainerBuilder $containerBuilder )
330330 {
331331 // ... do something during the compilation
332332 }
@@ -380,7 +380,7 @@ class implementing the ``CompilerPassInterface``::
380380
381381 class CustomPass implements CompilerPassInterface
382382 {
383- public function process(ContainerBuilder $container )
383+ public function process(ContainerBuilder $containerBuilder )
384384 {
385385 // ... do something during the compilation
386386 }
0 commit comments