Skip to content

Commit 86b074f

Browse files
CI love
1 parent 2fa8803 commit 86b074f

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

.github/workflows/test-turbo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:

src/Turbo/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"symfony/property-access": "^5.4|^6.0|^7.0",
5353
"symfony/security-core": "^5.4|^6.0|^7.0",
5454
"symfony/stopwatch": "^5.4|^6.0|^7.0",
55-
"symfony/ux-twig-component": "^2.0",
55+
"symfony/ux-twig-component": "^2.13",
5656
"symfony/twig-bundle": "^5.4|^6.0|^7.0",
5757
"symfony/web-profiler-bundle": "^5.4|^6.0|^7.0",
5858
"symfony/webpack-encore-bundle": "^2.1.1",

src/Turbo/tests/app/Kernel.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
3939
use Symfony\UX\StimulusBundle\StimulusBundle;
4040
use Symfony\UX\Turbo\TurboBundle;
41+
use Symfony\UX\TwigComponent\TwigComponentBundle;
4142
use Symfony\WebpackEncoreBundle\WebpackEncoreBundle;
4243
use 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();
@@ -120,6 +122,10 @@ protected function configureContainer(ContainerConfigurator $container): void
120122
],
121123
],
122124
]);
125+
126+
$container->extension('twig_component', [
127+
'anonymous_template_directory' => 'components/',
128+
]);
123129
}
124130

125131
protected function configureRoutes(RoutingConfigurator $routes): void

src/Turbo/tests/app/templates/broadcast/Artist.stream.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

src/Turbo/tests/app/templates/broadcast/Book.stream.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

src/Turbo/tests/app/templates/broadcast/Song.stream.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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

0 commit comments

Comments
 (0)