File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -34,18 +34,18 @@ method to load service definitions from configuration files::
3434
3535 class AcmeHelloBundle extends AbstractBundle
3636 {
37- public function loadExtension(array $config, ContainerConfigurator $containerConfigurator , ContainerBuilder $containerBuilder ): void
37+ public function loadExtension(array $config, ContainerConfigurator $container , ContainerBuilder $builder ): void
3838 {
3939 // load an XML, PHP or YAML file
40- $containerConfigurator ->import('../config/services.xml');
40+ $container ->import('../config/services.xml');
4141
4242 // you can also add or replace parameters and services
43- $containerConfigurator ->parameters()
43+ $container ->parameters()
4444 ->set('acme_hello.phrase', $config['phrase'])
4545 ;
4646
4747 if ($config['scream']) {
48- $containerConfigurator ->services()
48+ $container ->services()
4949 ->get('acme_hello.printer')
5050 ->class(ScreamingPrinter::class)
5151 ;
You can’t perform that action at this time.
0 commit comments