File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
components/dependency_injection Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -112,10 +112,11 @@ processed when the container is compiled at which point the Extensions are loade
112
112
use Symfony\Component\DependencyInjection\Loader\YamlFileLoader;
113
113
114
114
$container = new ContainerBuilder();
115
+ $container->registerExtension(new AcmeDemoExtension);
116
+
115
117
$loader = new YamlFileLoader($container, new FileLocator(__DIR__));
116
118
$loader->load('config.yml');
117
119
118
- $container->registerExtension(new AcmeDemoExtension);
119
120
// ...
120
121
$container->compile();
121
122
@@ -213,7 +214,7 @@ benefit of merging multiple files and validation of the configuration::
213
214
$processor = new Processor();
214
215
$config = $processor->processConfiguration($configuration, $configs);
215
216
216
- $container->setParameter('acme_demo.FOO', $config['foo']);
217
+ $container->setParameter('acme_demo.FOO', $config['foo'])
217
218
218
219
// ...
219
220
}
You can’t perform that action at this time.
0 commit comments