Skip to content

Commit d4e73c6

Browse files
committed
bug #1823 [TwigComponent] Remove wrongly added configuration (smnandre)
This PR was squashed before being merged into the 2.x branch. Discussion ---------- [TwigComponent] Remove wrongly added configuration | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Issues | Fix #... | License | MIT This configuration parameter has been added by mistake in 0284c0a#diff-d57f69d9cc81e78af30634d1b88a735542ffb1c98c782269abb604a85b727ce1R189-R191 I checked everywhere in this component and there is no usage of it (it seems to come from a Stimulus config copy/paste during the 6.4 ~~chaos~~ rush) Commits ------- 239425d [TwigComponent] Remove wrongly added configuration
2 parents 5e4ba9f + 239425d commit d4e73c6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/TwigComponent/src/DependencyInjection/TwigComponentExtension.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function getConfigTreeBuilder(): TreeBuilder
155155
->always(function ($v) {
156156
foreach ($v as $namespace => $defaults) {
157157
if (!str_ends_with($namespace, '\\')) {
158-
throw new InvalidConfigurationException(sprintf('The twig_component.defaults namespace "%s" is invalid: it must end in a "\"', $namespace));
158+
throw new InvalidConfigurationException(sprintf('The twig_component.defaults namespace "%s" is invalid: it must end in a "\".', $namespace));
159159
}
160160
}
161161

@@ -182,9 +182,6 @@ public function getConfigTreeBuilder(): TreeBuilder
182182
->scalarNode('anonymous_template_directory')
183183
->info('Defaults to `components`')
184184
->end()
185-
->scalarNode('controllers_json')
186-
->defaultValue('%kernel.project_dir%/assets/controllers.json')
187-
->end()
188185
->end();
189186

190187
return $treeBuilder;

0 commit comments

Comments
 (0)