File tree Expand file tree Collapse file tree 6 files changed +12
-6
lines changed Expand file tree Collapse file tree 6 files changed +12
-6
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 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" ,
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 ();
@@ -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
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