Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5be61fa

Browse files
committed
Fix BC break
1 parent f3df3d0 commit 5be61fa

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/AbstractConfigCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\Console\Helper\Table;
1717
use Symfony\Component\Console\Output\OutputInterface;
1818
use Symfony\Component\Console\Style\StyleInterface;
19-
use Symfony\Component\DependencyInjection\ContainerBuilder;
2019
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
2120

2221
/**
@@ -60,7 +59,7 @@ protected function listBundles($output)
6059
/**
6160
* @return ExtensionInterface
6261
*/
63-
protected function findExtension($name, ContainerBuilder $container)
62+
protected function findExtension($name)
6463
{
6564
$bundles = $this->initializeBundles();
6665
$minScore = \INF;
@@ -82,6 +81,8 @@ protected function findExtension($name, ContainerBuilder $container)
8281
}
8382
}
8483

84+
$container = $this->getContainerBuilder();
85+
8586
if ($container->hasExtension($name)) {
8687
return $container->getExtension($name);
8788
}

src/Symfony/Bundle/FrameworkBundle/Command/ConfigDebugCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7979
return 0;
8080
}
8181

82-
$container = $this->compileContainer();
83-
$extension = $this->findExtension($name, $container);
82+
$extension = $this->findExtension($name);
8483
$extensionAlias = $extension->getAlias();
84+
$container = $this->compileContainer();
8585

8686
$config = $container->resolveEnvPlaceholders(
8787
$container->getParameterBag()->resolveValue(

src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8989
return 0;
9090
}
9191

92-
$container = $this->getContainerBuilder();
93-
$extension = $this->findExtension($name, $container);
92+
$extension = $this->findExtension($name);
9493

95-
$configuration = $extension->getConfiguration([], $container);
94+
$configuration = $extension->getConfiguration([], $this->getContainerBuilder());
9695

9796
$this->validateConfiguration($extension, $configuration);
9897

0 commit comments

Comments
 (0)