mirror of
https://github.com/symfony/stimulus-bundle.git
synced 2026-03-24 01:12:07 +01:00
Add new TwigComponent namespaces & auto-naming rules
```
twig_component:
anonymous_template_directory: 'components/'
defaults:
# Namespace & directory for components
App\Twig\Components: 'components/'
```
Co-authored-by: Simon André <smn.andre@gmail.com>
This commit is contained in:
@@ -32,8 +32,7 @@ final class StimulusExtension extends Extension implements PrependExtensionInter
|
||||
$loader = new Loader\PhpFileLoader($container, new FileLocator(__DIR__.'/../../config'));
|
||||
$loader->load('services.php');
|
||||
|
||||
$configuration = $this->getConfiguration($configs, $container);
|
||||
$config = $this->processConfiguration($configuration, $configs);
|
||||
$config = $this->processConfiguration($this, $configs);
|
||||
|
||||
$container->findDefinition('stimulus.asset_mapper.controllers_map_generator')
|
||||
->replaceArgument(2, $config['controller_paths'])
|
||||
@@ -64,11 +63,6 @@ final class StimulusExtension extends Extension implements PrependExtensionInter
|
||||
]);
|
||||
}
|
||||
|
||||
public function getConfiguration(array $config, ContainerBuilder $container): ConfigurationInterface
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getConfigTreeBuilder(): TreeBuilder
|
||||
{
|
||||
$treeBuilder = new TreeBuilder('stimulus');
|
||||
|
||||
Reference in New Issue
Block a user