Skip to content

Commit 8bb0c0c

Browse files
smnandrekbond
authored andcommitted
[TwigComponent] Remove wrongly added configuration
1 parent 7ab4cc7 commit 8bb0c0c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

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)