File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change 29
29
"php" : " >=8.0" ,
30
30
"symfony/property-access" : " ^5.4|^6.0" ,
31
31
"symfony/serializer" : " ^5.4|^6.0" ,
32
- "symfony/ux-twig-component" : " ^2.5"
32
+ "symfony/twig-bundle" : " ^5.4|^6.0" ,
33
+ "symfony/ux-twig-component" : " ^2.5" ,
34
+ "twig/twig" : " ^2.0|^3.0"
33
35
},
34
36
"require-dev" : {
35
37
"doctrine/annotations" : " ^1.0" ,
40
42
"symfony/framework-bundle" : " ^5.4|^6.0" ,
41
43
"symfony/phpunit-bridge" : " ^6.0" ,
42
44
"symfony/security-csrf" : " ^5.4|^6.0" ,
43
- "symfony/twig-bundle" : " ^5.4|^6.0" ,
44
45
"symfony/validator" : " ^5.4|^6.0" ,
45
46
"zenstruck/browser" : " ^1.2.0" ,
46
47
"zenstruck/foundry" : " ^1.10"
Original file line number Diff line number Diff line change 30
30
"symfony/dependency-injection" : " ^5.4|^6.0" ,
31
31
"symfony/event-dispatcher" : " ^5.4|^6.0" ,
32
32
"symfony/property-access" : " ^5.4|^6.0" ,
33
+ "symfony/twig-bundle" : " ^5.4|^6.0" ,
33
34
"twig/twig" : " ^2.0|^3.0"
34
35
},
35
36
"require-dev" : {
36
37
"symfony/framework-bundle" : " ^5.4|^6.0" ,
37
- "symfony/phpunit-bridge" : " ^6.0" ,
38
- "symfony/twig-bundle" : " ^5.4|^6.0"
38
+ "symfony/phpunit-bridge" : " ^6.0"
39
39
},
40
40
"conflict" : {
41
41
"symfony/config" : " <5.4.0"
Original file line number Diff line number Diff line change 16
16
use Symfony \Component \DependencyInjection \Argument \TaggedIteratorArgument ;
17
17
use Symfony \Component \DependencyInjection \ChildDefinition ;
18
18
use Symfony \Component \DependencyInjection \ContainerBuilder ;
19
- use Symfony \Component \DependencyInjection \Exception \LogicException ;
20
19
use Symfony \Component \DependencyInjection \Extension \Extension ;
21
20
use Symfony \Component \DependencyInjection \Reference ;
22
21
use Symfony \UX \TwigComponent \Attribute \AsTwigComponent ;
@@ -38,10 +37,6 @@ final class TwigComponentExtension extends Extension
38
37
{
39
38
public function load (array $ configs , ContainerBuilder $ container ): void
40
39
{
41
- if (!isset ($ container ->getParameter ('kernel.bundles ' )['TwigBundle ' ])) {
42
- throw new LogicException ('The TwigBundle is not registered in your application. Try running "composer require symfony/twig-bundle". ' );
43
- }
44
-
45
40
$ container ->registerAttributeForAutoconfiguration (
46
41
AsTwigComponent::class,
47
42
static function (ChildDefinition $ definition , AsTwigComponent $ attribute ) {
You can’t perform that action at this time.
0 commit comments