Skip to content

Commit 1871de9

Browse files
Define requirement to the twig bundle
1 parent f174955 commit 1871de9

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/LiveComponent/composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
"php": ">=8.0",
3030
"symfony/property-access": "^5.4|^6.0",
3131
"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"
3335
},
3436
"require-dev": {
3537
"doctrine/annotations": "^1.0",

src/TwigComponent/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
"symfony/dependency-injection": "^5.4|^6.0",
3131
"symfony/event-dispatcher": "^5.4|^6.0",
3232
"symfony/property-access": "^5.4|^6.0",
33+
"symfony/twig-bundle": "^5.4|^6.0",
3334
"twig/twig": "^2.0|^3.0"
3435
},
3536
"require-dev": {
3637
"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"
3939
},
4040
"conflict": {
4141
"symfony/config": "<5.4.0"

src/TwigComponent/src/DependencyInjection/TwigComponentExtension.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ final class TwigComponentExtension extends Extension
3838
{
3939
public function load(array $configs, ContainerBuilder $container): void
4040
{
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-
4541
$container->registerAttributeForAutoconfiguration(
4642
AsTwigComponent::class,
4743
static function (ChildDefinition $definition, AsTwigComponent $attribute) {

0 commit comments

Comments
 (0)