diff --git a/ux.symfony.com/config/packages/twig_component.yaml b/ux.symfony.com/config/packages/twig_component.yaml index 9322e1475a8..388d533e4ec 100644 --- a/ux.symfony.com/config/packages/twig_component.yaml +++ b/ux.symfony.com/config/packages/twig_component.yaml @@ -1,10 +1,10 @@ twig_component: defaults: - App\Twig\: 'components/' + App\Twig\Components\: 'components/' + + # Custom namespace for MemoryDemo App\LiveMemory\Component\: template_directory: 'demos/live_memory/components/LiveMemory/' name_prefix: 'LiveMemory:' - - #anonymous_template_directory: 'demos/live_memory/components/' anonymous_template_directory: 'components/' diff --git a/ux.symfony.com/src/Twig/Alert.php b/ux.symfony.com/src/Twig/Components/Alert.php similarity index 94% rename from ux.symfony.com/src/Twig/Alert.php rename to ux.symfony.com/src/Twig/Components/Alert.php index f24dfcd4b00..00f8d8fc0a1 100644 --- a/ux.symfony.com/src/Twig/Alert.php +++ b/ux.symfony.com/src/Twig/Components/Alert.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use Symfony\UX\TwigComponent\Attribute\AsTwigComponent; diff --git a/ux.symfony.com/src/Twig/BootstrapModal.php b/ux.symfony.com/src/Twig/Components/BootstrapModal.php similarity index 92% rename from ux.symfony.com/src/Twig/BootstrapModal.php rename to ux.symfony.com/src/Twig/Components/BootstrapModal.php index 96cf003c3f3..51063999576 100644 --- a/ux.symfony.com/src/Twig/BootstrapModal.php +++ b/ux.symfony.com/src/Twig/Components/BootstrapModal.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use Symfony\UX\TwigComponent\Attribute\AsTwigComponent; diff --git a/ux.symfony.com/src/Twig/DinoChart.php b/ux.symfony.com/src/Twig/Components/DinoChart.php similarity index 98% rename from ux.symfony.com/src/Twig/DinoChart.php rename to ux.symfony.com/src/Twig/Components/DinoChart.php index 1c49e80c08b..ed4fc14bff8 100644 --- a/ux.symfony.com/src/Twig/DinoChart.php +++ b/ux.symfony.com/src/Twig/Components/DinoChart.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Service\DinoStatsService; use Symfony\UX\Chartjs\Builder\ChartBuilderInterface; diff --git a/ux.symfony.com/src/Twig/DocsLink.php b/ux.symfony.com/src/Twig/Components/DocsLink.php similarity index 95% rename from ux.symfony.com/src/Twig/DocsLink.php rename to ux.symfony.com/src/Twig/Components/DocsLink.php index 7dd6e75e550..e057fa8745f 100644 --- a/ux.symfony.com/src/Twig/DocsLink.php +++ b/ux.symfony.com/src/Twig/Components/DocsLink.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use Symfony\UX\TwigComponent\Attribute\AsTwigComponent; use Symfony\UX\TwigComponent\Attribute\ExposeInTemplate; diff --git a/ux.symfony.com/src/Twig/FoodVote.php b/ux.symfony.com/src/Twig/Components/FoodVote.php similarity index 97% rename from ux.symfony.com/src/Twig/FoodVote.php rename to ux.symfony.com/src/Twig/Components/FoodVote.php index 3822ba96c23..40395dafbc8 100644 --- a/ux.symfony.com/src/Twig/FoodVote.php +++ b/ux.symfony.com/src/Twig/Components/FoodVote.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Entity\Food; use App\Repository\FoodRepository; diff --git a/ux.symfony.com/src/Twig/HomepageTerminalSwapper.php b/ux.symfony.com/src/Twig/Components/HomepageTerminalSwapper.php similarity index 97% rename from ux.symfony.com/src/Twig/HomepageTerminalSwapper.php rename to ux.symfony.com/src/Twig/Components/HomepageTerminalSwapper.php index dca67b402af..b126bc5d791 100644 --- a/ux.symfony.com/src/Twig/HomepageTerminalSwapper.php +++ b/ux.symfony.com/src/Twig/Components/HomepageTerminalSwapper.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Model\UxPackage; use App\Service\UxPackageRepository; diff --git a/ux.symfony.com/src/Twig/InlineEditFood.php b/ux.symfony.com/src/Twig/Components/InlineEditFood.php similarity index 98% rename from ux.symfony.com/src/Twig/InlineEditFood.php rename to ux.symfony.com/src/Twig/Components/InlineEditFood.php index 5923ac946a8..2753be3b4f4 100644 --- a/ux.symfony.com/src/Twig/InlineEditFood.php +++ b/ux.symfony.com/src/Twig/Components/InlineEditFood.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Entity\Food; use Doctrine\ORM\EntityManagerInterface; diff --git a/ux.symfony.com/src/Twig/InvoiceCreator.php b/ux.symfony.com/src/Twig/Components/InvoiceCreator.php similarity index 99% rename from ux.symfony.com/src/Twig/InvoiceCreator.php rename to ux.symfony.com/src/Twig/Components/InvoiceCreator.php index eff32b2846e..14c2256143d 100644 --- a/ux.symfony.com/src/Twig/InvoiceCreator.php +++ b/ux.symfony.com/src/Twig/Components/InvoiceCreator.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Entity\Invoice; use App\Entity\InvoiceItem; diff --git a/ux.symfony.com/src/Twig/InvoiceCreatorLineItem.php b/ux.symfony.com/src/Twig/Components/InvoiceCreatorLineItem.php similarity index 98% rename from ux.symfony.com/src/Twig/InvoiceCreatorLineItem.php rename to ux.symfony.com/src/Twig/Components/InvoiceCreatorLineItem.php index 105e6f3ce6f..660ce9de790 100644 --- a/ux.symfony.com/src/Twig/InvoiceCreatorLineItem.php +++ b/ux.symfony.com/src/Twig/Components/InvoiceCreatorLineItem.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Entity\Product; use App\Repository\ProductRepository; diff --git a/ux.symfony.com/src/Twig/MealPlanner.php b/ux.symfony.com/src/Twig/Components/MealPlanner.php similarity index 96% rename from ux.symfony.com/src/Twig/MealPlanner.php rename to ux.symfony.com/src/Twig/Components/MealPlanner.php index 30e5f6c772b..93db6133ecf 100644 --- a/ux.symfony.com/src/Twig/MealPlanner.php +++ b/ux.symfony.com/src/Twig/Components/MealPlanner.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Form\MealPlannerForm; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; diff --git a/ux.symfony.com/src/Twig/NewCategoryForm.php b/ux.symfony.com/src/Twig/Components/NewCategoryForm.php similarity index 98% rename from ux.symfony.com/src/Twig/NewCategoryForm.php rename to ux.symfony.com/src/Twig/Components/NewCategoryForm.php index 8f70d26c814..7636e2b1ecf 100644 --- a/ux.symfony.com/src/Twig/NewCategoryForm.php +++ b/ux.symfony.com/src/Twig/Components/NewCategoryForm.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Entity\Category; use Doctrine\ORM\EntityManagerInterface; diff --git a/ux.symfony.com/src/Twig/NewProductForm.php b/ux.symfony.com/src/Twig/Components/NewProductForm.php similarity index 98% rename from ux.symfony.com/src/Twig/NewProductForm.php rename to ux.symfony.com/src/Twig/Components/NewProductForm.php index 41e66df73db..bb33fa4f4ee 100644 --- a/ux.symfony.com/src/Twig/NewProductForm.php +++ b/ux.symfony.com/src/Twig/Components/NewProductForm.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Entity\Category; use App\Entity\Product; diff --git a/ux.symfony.com/src/Twig/ProductGrid.php b/ux.symfony.com/src/Twig/Components/ProductGrid.php similarity index 98% rename from ux.symfony.com/src/Twig/ProductGrid.php rename to ux.symfony.com/src/Twig/Components/ProductGrid.php index 11793d2b308..fa2a6ebab97 100644 --- a/ux.symfony.com/src/Twig/ProductGrid.php +++ b/ux.symfony.com/src/Twig/Components/ProductGrid.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Service\EmojiCollection; use Symfony\UX\LiveComponent\Attribute\AsLiveComponent; diff --git a/ux.symfony.com/src/Twig/ProductGrid2.php b/ux.symfony.com/src/Twig/Components/ProductGrid2.php similarity index 98% rename from ux.symfony.com/src/Twig/ProductGrid2.php rename to ux.symfony.com/src/Twig/Components/ProductGrid2.php index 1a71ff3641a..a837bcdb78a 100644 --- a/ux.symfony.com/src/Twig/ProductGrid2.php +++ b/ux.symfony.com/src/Twig/Components/ProductGrid2.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Service\EmojiCollection; use Symfony\UX\LiveComponent\Attribute\AsLiveComponent; diff --git a/ux.symfony.com/src/Twig/RegistrationForm.php b/ux.symfony.com/src/Twig/Components/RegistrationForm.php similarity index 98% rename from ux.symfony.com/src/Twig/RegistrationForm.php rename to ux.symfony.com/src/Twig/Components/RegistrationForm.php index 8ce8733c5bb..f7918900187 100644 --- a/ux.symfony.com/src/Twig/RegistrationForm.php +++ b/ux.symfony.com/src/Twig/Components/RegistrationForm.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Form\RegistrationFormType; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; diff --git a/ux.symfony.com/src/Twig/Terminal.php b/ux.symfony.com/src/Twig/Components/Terminal.php similarity index 95% rename from ux.symfony.com/src/Twig/Terminal.php rename to ux.symfony.com/src/Twig/Components/Terminal.php index 7e943b6f575..6399b5712ac 100644 --- a/ux.symfony.com/src/Twig/Terminal.php +++ b/ux.symfony.com/src/Twig/Components/Terminal.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Util\SourceCleaner; use Symfony\UX\TwigComponent\Attribute\AsTwigComponent; diff --git a/ux.symfony.com/src/Twig/TodoListForm.php b/ux.symfony.com/src/Twig/Components/TodoListForm.php similarity index 96% rename from ux.symfony.com/src/Twig/TodoListForm.php rename to ux.symfony.com/src/Twig/Components/TodoListForm.php index 165936f63d9..019bbd8f51b 100644 --- a/ux.symfony.com/src/Twig/TodoListForm.php +++ b/ux.symfony.com/src/Twig/Components/TodoListForm.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use App\Entity\TodoList; use App\Form\TodoListFormType; diff --git a/ux.symfony.com/src/Twig/UploadFiles.php b/ux.symfony.com/src/Twig/Components/UploadFiles.php similarity index 98% rename from ux.symfony.com/src/Twig/UploadFiles.php rename to ux.symfony.com/src/Twig/Components/UploadFiles.php index ce59a21f4e7..824ca5b78ad 100644 --- a/ux.symfony.com/src/Twig/UploadFiles.php +++ b/ux.symfony.com/src/Twig/Components/UploadFiles.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace App\Twig; +namespace App\Twig\Components; use Symfony\Component\HttpFoundation\File\UploadedFile; use Symfony\Component\HttpFoundation\Request; diff --git a/ux.symfony.com/templates/demos/live_component/auto_validating_form.html.twig b/ux.symfony.com/templates/demos/live_component/auto_validating_form.html.twig index 4a1d8d2b4d7..df3f0affaa3 100644 --- a/ux.symfony.com/templates/demos/live_component/auto_validating_form.html.twig +++ b/ux.symfony.com/templates/demos/live_component/auto_validating_form.html.twig @@ -1,7 +1,7 @@ {% extends 'demos/live_demo.html.twig' %} {% block code_block_left %} - + {% endblock %} {% block code_block_right %} diff --git a/ux.symfony.com/templates/demos/live_component/bootstrap.html.twig b/ux.symfony.com/templates/demos/live_component/bootstrap.html.twig index 4c3f371515d..0175c33416f 100644 --- a/ux.symfony.com/templates/demos/live_component/bootstrap.html.twig +++ b/ux.symfony.com/templates/demos/live_component/bootstrap.html.twig @@ -1,7 +1,7 @@ {% extends 'demos/live_demo.html.twig' %} {% block code_block_left %} - + {% endblock %} {% block code_block_right %} diff --git a/ux.symfony.com/templates/demos/live_component/chartjs.html.twig b/ux.symfony.com/templates/demos/live_component/chartjs.html.twig index 58a8881e05f..f9b04b0dace 100644 --- a/ux.symfony.com/templates/demos/live_component/chartjs.html.twig +++ b/ux.symfony.com/templates/demos/live_component/chartjs.html.twig @@ -1,7 +1,7 @@ {% extends 'demos/live_demo.html.twig' %} {% block code_block_left %} - + {% endblock %} {% block code_block_right %} diff --git a/ux.symfony.com/templates/demos/live_component/dependent_form_fields.html.twig b/ux.symfony.com/templates/demos/live_component/dependent_form_fields.html.twig index bbb69b83c2f..4ee03984bb4 100644 --- a/ux.symfony.com/templates/demos/live_component/dependent_form_fields.html.twig +++ b/ux.symfony.com/templates/demos/live_component/dependent_form_fields.html.twig @@ -2,7 +2,7 @@ {% block code_block_full %} diff --git a/ux.symfony.com/templates/demos/live_component/form_collection_type.html.twig b/ux.symfony.com/templates/demos/live_component/form_collection_type.html.twig index 4c3f371515d..0175c33416f 100644 --- a/ux.symfony.com/templates/demos/live_component/form_collection_type.html.twig +++ b/ux.symfony.com/templates/demos/live_component/form_collection_type.html.twig @@ -1,7 +1,7 @@ {% extends 'demos/live_demo.html.twig' %} {% block code_block_left %} - + {% endblock %} {% block code_block_right %} diff --git a/ux.symfony.com/templates/demos/live_component/infinite_scroll.html.twig b/ux.symfony.com/templates/demos/live_component/infinite_scroll.html.twig index 6bdf0dbabcd..fa9a634e5ea 100644 --- a/ux.symfony.com/templates/demos/live_component/infinite_scroll.html.twig +++ b/ux.symfony.com/templates/demos/live_component/infinite_scroll.html.twig @@ -26,7 +26,7 @@
- + This component is quite standard: the page number as a `LiveProp`, a `LiveAction` to load the next page, and a `getItems` method to retrieve the page results. diff --git a/ux.symfony.com/templates/demos/live_component/inline_edit.html.twig b/ux.symfony.com/templates/demos/live_component/inline_edit.html.twig index 2a7628d20b6..233b68f64fc 100644 --- a/ux.symfony.com/templates/demos/live_component/inline_edit.html.twig +++ b/ux.symfony.com/templates/demos/live_component/inline_edit.html.twig @@ -1,7 +1,7 @@ {% extends 'demos/live_demo.html.twig' %} {% block code_block_left %} - + {% endblock %} {% block code_block_right %} diff --git a/ux.symfony.com/templates/demos/live_component/invoice.html.twig b/ux.symfony.com/templates/demos/live_component/invoice.html.twig index b4c54257771..9d9340b397d 100644 --- a/ux.symfony.com/templates/demos/live_component/invoice.html.twig +++ b/ux.symfony.com/templates/demos/live_component/invoice.html.twig @@ -1,7 +1,7 @@ {% extends 'demos/live_demo.html.twig' %} {% block code_block_full %} - + ## Main Component This main component keeps track of the `Invoice` (which may be new) and @@ -30,7 +30,7 @@ data: `productId`, `quantity`, and `isEditing`. It also passes a `key`, which is needed so LiveComponents can track which row is which. - + ## Child Component The child component for each "line item". This handles validating, saving, diff --git a/ux.symfony.com/templates/demos/live_component/product_form.html.twig b/ux.symfony.com/templates/demos/live_component/product_form.html.twig index bb2a7adad32..6aad5da5a10 100644 --- a/ux.symfony.com/templates/demos/live_component/product_form.html.twig +++ b/ux.symfony.com/templates/demos/live_component/product_form.html.twig @@ -5,7 +5,7 @@ {% endblock %} {% block code_block_full %} - + ## New Product Form Live component with a form, `ValidatableComponentTrait` and a @@ -31,7 +31,7 @@ and `data-bs-target="#new-category-modal"`. ## New Category Form @@ -45,7 +45,7 @@ the new `Category` to the database and then does two important things: diff --git a/ux.symfony.com/templates/demos/live_component/upload.html.twig b/ux.symfony.com/templates/demos/live_component/upload.html.twig index 671f4fbd412..246d47b8a03 100644 --- a/ux.symfony.com/templates/demos/live_component/upload.html.twig +++ b/ux.symfony.com/templates/demos/live_component/upload.html.twig @@ -1,7 +1,7 @@ {% extends 'demos/live_demo.html.twig' %} {% block code_block_left %} - + {% endblock %} {% block code_block_right %} diff --git a/ux.symfony.com/templates/demos/live_component/voting.html.twig b/ux.symfony.com/templates/demos/live_component/voting.html.twig index 776ba909fe1..34da62e0748 100644 --- a/ux.symfony.com/templates/demos/live_component/voting.html.twig +++ b/ux.symfony.com/templates/demos/live_component/voting.html.twig @@ -1,7 +1,7 @@ {% extends 'demos/live_demo.html.twig' %} {% block code_block_left %} - + {% endblock %} {% block code_block_right %} diff --git a/ux.symfony.com/templates/ux_packages/twig_component.html.twig b/ux.symfony.com/templates/ux_packages/twig_component.html.twig index 843a33dde1c..91da8abbc18 100644 --- a/ux.symfony.com/templates/ux_packages/twig_component.html.twig +++ b/ux.symfony.com/templates/ux_packages/twig_component.html.twig @@ -16,7 +16,7 @@ {% endblock %} {% block code_block_left %} - + {% endblock %} {% block code_block_right %}