Skip to content

Commit 97b5ef1

Browse files
committed
minor #19321 match parameter names with AbstractBundle (tacman)
This PR was submitted for the 7.0 branch but it was merged into the 6.3 branch instead. Discussion ---------- match parameter names with AbstractBundle For consistency, the parameters should match AbstractBundle Commits ------- 6896b7e match parameter names with AbstractBundle
2 parents f8beecd + 6896b7e commit 97b5ef1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bundles/extension.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ method::
127127

128128
class AcmeHelloBundle extends AbstractBundle
129129
{
130-
public function loadExtension(array $config, ContainerConfigurator $containerConfigurator, ContainerBuilder $containerBuilder): void
130+
public function loadExtension(array $config, ContainerConfigurator $container, ContainerBuilder $builder): void
131131
{
132132
// load an XML, PHP or Yaml file
133-
$containerConfigurator->import('../config/services.xml');
133+
$container->import('../config/services.xml');
134134

135135
// you can also add or replace parameters and services
136-
$containerConfigurator->parameters()
136+
$container->parameters()
137137
->set('acme_hello.phrase', $config['phrase'])
138138
;
139139

140140
if ($config['scream']) {
141-
$containerConfigurator->services()
141+
$container->services()
142142
->get('acme_hello.printer')
143143
->class(ScreamingPrinter::class)
144144
;

0 commit comments

Comments
 (0)