Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/LiveComponent/tests/Fixtures/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ protected function configureContainer(ContainerConfigurator $c): void
'default_path' => '%kernel.project_dir%/tests/Fixtures/templates',
]);

$c->extension('twig_component', [
'defaults' => [
'Symfony\UX\LiveComponent\Tests\Fixtures\Component\\' => 'components/',
],
'anonymous_template_directory' => 'components/',
]);

$c->extension('zenstruck_foundry', [
'auto_refresh_proxies' => false,
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ public function load(array $configs, ContainerBuilder $container): void
$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'])
Expand Down Expand Up @@ -64,11 +63,6 @@ public function prepend(ContainerBuilder $container)
]);
}

public function getConfiguration(array $config, ContainerBuilder $container): ConfigurationInterface
{
return $this;
}

public function getConfigTreeBuilder(): TreeBuilder
{
$treeBuilder = new TreeBuilder('stimulus');
Expand Down
2 changes: 2 additions & 0 deletions src/TwigComponent/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## 2.13.0

- Deprecate calling `ComponentTemplateFinder` constructor without `directory` argument.
- Add profiler integration: `TwigComponentDataCollector` and debug toolbar templates
- Add search feature in `debug:twig-component` command.

## 2.12.0

Expand Down
Loading