File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ jobs:
3838 strategy:
3939 fail-fast: false
4040 matrix:
41- php-version: ['8.1', '8.3 ']
41+ php-version: ['8.1', '8.4 ']
4242 include:
4343 - php-version: '8.1'
4444 dependency-version: 'lowest'
45- - php-version: '8.3 '
45+ - php-version: '8.4 '
4646 dependency-version: 'highest'
4747
4848 services:
Original file line number Diff line number Diff line change 3838use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
3939use Symfony\UX\StimulusBundle\StimulusBundle;
4040use Symfony\UX\Turbo\TurboBundle;
41+ use Symfony\UX\TwigComponent\TwigComponentBundle;
4142use Symfony\WebpackEncoreBundle\WebpackEncoreBundle;
4243use Twig\Environment;
4344
@@ -54,6 +55,7 @@ public function registerBundles(): iterable
5455 yield new DoctrineBundle();
5556 yield new TwigBundle();
5657 yield new MercureBundle();
58+ yield new TwigComponentBundle();
5759 yield new TurboBundle();
5860 yield new WebpackEncoreBundle();
5961 yield new StimulusBundle();
@@ -78,6 +80,9 @@ protected function configureContainer(ContainerConfigurator $container): void
7880 'dbal' => [
7981 'url' => 'sqlite:///%kernel.project_dir%/var/turbo.db',
8082 ],
83+ 'twig_component' => [
84+ 'anonymous_template_directory' => 'components/',
85+ ],
8186 'orm' => [
8287 'auto_generate_proxy_classes' => true,
8388 'auto_mapping' => true,
Original file line number Diff line number Diff line change 11{% block create %}
22 <twig:Turbo:Stream:Append target="#artists">
3- <div id="{{ 'artist_' ~ id }}"><a href="{{ path('artist', {id: id}) }}">{{ entity.name }} (#{{ id }})</a></div>
3+ <div id="artist_{{ id }}"><a href="{{ path('artist', {id: id}) }}">{{ entity.name }} (#{{ id }})</a></div>
44 </twig:Turbo:Stream:Append>
55{% endblock %}
66
Original file line number Diff line number Diff line change 11{% block create %}
22 <twig:Turbo:Stream:Append target="#books">
3- <div id="{{ 'book_' ~ id }}">{{ entity.title }} (#{{ id }})</div>
3+ <div id="book_{{ id }}">{{ entity.title }} (#{{ id }})</div>
44 </twig:Turbo:Stream:Append>
55{% endblock %}
66
Original file line number Diff line number Diff line change 11{% block create %}
22 <twig:Turbo:Stream:Append target="#songs">
3- <div id="{{ 'song_' ~ id }}">{{ entity.title }} (#{{ id }}){% if entity.artist %} by {{ entity.artist.name }} (#{{ entity.artist.id }}){% endif %}</div>
3+ <div id="song_{{ id }}">{{ entity.title }} (#{{ id }}){% if entity.artist %} by {{ entity.artist.name }} (#{{ entity.artist.id }}){% endif %}</div>
44 </twig:Turbo:Stream:Append>
55{% endblock %}
66
You can’t perform that action at this time.
0 commit comments