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::
34
34
35
35
class AcmeHelloBundle extends AbstractBundle
36
36
{
37
- public function loadExtension(array $config, ContainerConfigurator $containerConfigurator , ContainerBuilder $containerBuilder ): void
37
+ public function loadExtension(array $config, ContainerConfigurator $container , ContainerBuilder $builder ): void
38
38
{
39
39
// load an XML, PHP or YAML file
40
- $containerConfigurator ->import('../config/services.xml');
40
+ $container ->import('../config/services.xml');
41
41
42
42
// you can also add or replace parameters and services
43
- $containerConfigurator ->parameters()
43
+ $container ->parameters()
44
44
->set('acme_hello.phrase', $config['phrase'])
45
45
;
46
46
47
47
if ($config['scream']) {
48
- $containerConfigurator ->services()
48
+ $container ->services()
49
49
->get('acme_hello.printer')
50
50
->class(ScreamingPrinter::class)
51
51
;
You can’t perform that action at this time.
0 commit comments