From 3eecea7f2ebc56cfc2e6e85c0bfff16cd030058a Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Sat, 23 Sep 2023 20:47:53 -0400 Subject: [PATCH 1/3] Adding config file for TwigCokmponent 2.13 --- .../2.13/config/packages/twig_component.yaml | 4 ++++ symfony/ux-twig-component/2.13/manifest.json | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 symfony/ux-twig-component/2.13/config/packages/twig_component.yaml create mode 100644 symfony/ux-twig-component/2.13/manifest.json diff --git a/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml b/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml new file mode 100644 index 000000000..55b5070e5 --- /dev/null +++ b/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml @@ -0,0 +1,4 @@ +twig_component: + defaults: + # Namespace & directory for components + App\Twig\Components: 'components/' diff --git a/symfony/ux-twig-component/2.13/manifest.json b/symfony/ux-twig-component/2.13/manifest.json new file mode 100644 index 000000000..c6968c457 --- /dev/null +++ b/symfony/ux-twig-component/2.13/manifest.json @@ -0,0 +1,8 @@ +{ + "bundles": { + "Symfony\\UX\\TwigComponent\\TwigComponentBundle": ["all"] + }, + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +} From 75264115dc4ca1ff74831dc89bc9d21b08f995f6 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Tue, 3 Oct 2023 13:58:12 -0400 Subject: [PATCH 2/3] Adding anonymous_template_directory --- .../ux-twig-component/2.13/config/packages/twig_component.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml b/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml index 55b5070e5..945567a9b 100644 --- a/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml +++ b/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml @@ -1,4 +1,5 @@ twig_component: + anonymous_template_directory: 'components/' defaults: # Namespace & directory for components App\Twig\Components: 'components/' From ee11c92e7f5b9381ac829d1e62530dc98bc3f59c Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Wed, 4 Oct 2023 11:03:00 -0400 Subject: [PATCH 3/3] trailing slash --- .../ux-twig-component/2.13/config/packages/twig_component.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml b/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml index 945567a9b..fd17ac693 100644 --- a/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml +++ b/symfony/ux-twig-component/2.13/config/packages/twig_component.yaml @@ -2,4 +2,4 @@ twig_component: anonymous_template_directory: 'components/' defaults: # Namespace & directory for components - App\Twig\Components: 'components/' + App\Twig\Components\: 'components/'