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

Skip to content

Commit f8f97b9

Browse files
committed
Move ParamConfigurator to Config
1 parent 4fc1e5f commit f8f97b9

File tree

7 files changed

+12
-8
lines changed

7 files changed

+12
-8
lines changed

src/Symfony/Component/Config/Builder/ConfigBuilderGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
use Symfony\Component\Config\Definition\PrototypedArrayNode;
2323
use Symfony\Component\Config\Definition\ScalarNode;
2424
use Symfony\Component\Config\Definition\VariableNode;
25-
use Symfony\Component\DependencyInjection\Loader\Configurator\ParamConfigurator;
25+
use Symfony\Component\Config\Loader\ParamConfigurator;
2626

2727
/**
2828
* Generate ConfigBuilders to help create valid config.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
12+
namespace Symfony\Component\Config\Loader;
1313

1414
/**
1515
* Placeholder for a parameter.

src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ public function fixtureNames()
3535
yield $name => [$name, $alias];
3636
}
3737

38-
// If symfony/dependency-injection:^5.3 is installed
39-
if (class_exists(ParamConfigurator::class)) {
40-
// Force load ContainerConfigurator to get env() and param()
41-
class_exists(ContainerConfigurator::class);
42-
38+
/*
39+
* Force load ContainerConfigurator to make env(), param() etc available
40+
* and also check if symfony/dependency-injection is installed
41+
*/
42+
if (class_exists(ContainerConfigurator::class)) {
4343
yield 'Placeholders' => ['Placeholders', 'placeholders'];
4444
}
4545
}

src/Symfony/Component/DependencyInjection/Loader/Configurator/AbstractConfigurator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
1313

14+
use Symfony\Component\Config\Loader\ParamConfigurator;
1415
use Symfony\Component\DependencyInjection\Argument\AbstractArgument;
1516
use Symfony\Component\DependencyInjection\Argument\ArgumentInterface;
1617
use Symfony\Component\DependencyInjection\Definition;

src/Symfony/Component/DependencyInjection/Loader/Configurator/ContainerConfigurator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
1313

14+
use Symfony\Component\Config\Loader\ParamConfigurator;
1415
use Symfony\Component\DependencyInjection\Argument\AbstractArgument;
1516
use Symfony\Component\DependencyInjection\Argument\IteratorArgument;
1617
use Symfony\Component\DependencyInjection\Argument\ServiceLocatorArgument;

src/Symfony/Component/DependencyInjection/Loader/Configurator/EnvConfigurator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
1313

14+
use Symfony\Component\Config\Loader\ParamConfigurator;
15+
1416
class EnvConfigurator extends ParamConfigurator
1517
{
1618
/**

src/Symfony/Component/DependencyInjection/Loader/PhpFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ private function executeCallback(callable $callback, ContainerConfigurator $cont
128128
}
129129
}
130130

131-
// Force load ContainerConfigurator to get env() and param()
131+
// Force load ContainerConfigurator to make env(), param() etc available.
132132
class_exists(ContainerConfigurator::class);
133133

134134
$callback(...$arguments);

0 commit comments

Comments
 (0)