Skip to content

Commit

Permalink
minor #19438 Revert "match parameter names with AbstractBundle" (xabbuh)
Browse files Browse the repository at this point in the history
This PR was merged into the 6.3 branch.

Discussion
----------

Revert "match parameter names with AbstractBundle"

This reverts commit 6896b7e.

reverting #19321 to make the CI green again

Commits
-------

63b32b5 Revert "match parameter names with AbstractBundle"
  • Loading branch information
xabbuh committed Jan 18, 2024
2 parents 3eb4655 + 63b32b5 commit 8ac82c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bundles/extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,18 @@ method::

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

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

if ($config['scream']) {
$container->services()
$containerConfigurator->services()
->get('acme_hello.printer')
->class(ScreamingPrinter::class)
;
Expand Down

0 comments on commit 8ac82c9

Please sign in to comment.