Skip to content

Commit 3b7d1f4

Browse files
committed
[Site] Update demo components paths
As mentionned in #2333, demo component classes did not follow current "default" configuration, leading to paths not in line with documentation. Easier than anticipated to fix.
1 parent 666b27c commit 3b7d1f4

31 files changed

+36
-36
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
twig_component:
22
defaults:
3-
App\Twig\: 'components/'
3+
App\Twig\Components\: 'components/'
4+
5+
# Custom namespace for MemoryDemo
46
App\LiveMemory\Component\:
57
template_directory: 'demos/live_memory/components/LiveMemory/'
68
name_prefix: 'LiveMemory:'
79

8-
9-
#anonymous_template_directory: 'demos/live_memory/components/'
1010
anonymous_template_directory: 'components/'

ux.symfony.com/src/Twig/Alert.php renamed to ux.symfony.com/src/Twig/Components/Alert.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace App\Twig;
12+
namespace App\Twig\Components;
1313

1414
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
1515

ux.symfony.com/src/Twig/BootstrapModal.php renamed to ux.symfony.com/src/Twig/Components/BootstrapModal.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace App\Twig;
12+
namespace App\Twig\Components;
1313

1414
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
1515

ux.symfony.com/src/Twig/DinoChart.php renamed to ux.symfony.com/src/Twig/Components/DinoChart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace App\Twig;
12+
namespace App\Twig\Components;
1313

1414
use App\Service\DinoStatsService;
1515
use Symfony\UX\Chartjs\Builder\ChartBuilderInterface;

ux.symfony.com/src/Twig/DocsLink.php renamed to ux.symfony.com/src/Twig/Components/DocsLink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace App\Twig;
12+
namespace App\Twig\Components;
1313

1414
use Symfony\UX\TwigComponent\Attribute\AsTwigComponent;
1515
use Symfony\UX\TwigComponent\Attribute\ExposeInTemplate;

ux.symfony.com/src/Twig/FoodVote.php renamed to ux.symfony.com/src/Twig/Components/FoodVote.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace App\Twig;
12+
namespace App\Twig\Components;
1313

1414
use App\Entity\Food;
1515
use App\Repository\FoodRepository;

ux.symfony.com/src/Twig/HomepageTerminalSwapper.php renamed to ux.symfony.com/src/Twig/Components/HomepageTerminalSwapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace App\Twig;
12+
namespace App\Twig\Components;
1313

1414
use App\Model\UxPackage;
1515
use App\Service\UxPackageRepository;

ux.symfony.com/src/Twig/InlineEditFood.php renamed to ux.symfony.com/src/Twig/Components/InlineEditFood.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace App\Twig;
12+
namespace App\Twig\Components;
1313

1414
use App\Entity\Food;
1515
use Doctrine\ORM\EntityManagerInterface;

ux.symfony.com/src/Twig/InvoiceCreator.php renamed to ux.symfony.com/src/Twig/Components/InvoiceCreator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace App\Twig;
12+
namespace App\Twig\Components;
1313

1414
use App\Entity\Invoice;
1515
use App\Entity\InvoiceItem;

ux.symfony.com/src/Twig/InvoiceCreatorLineItem.php renamed to ux.symfony.com/src/Twig/Components/InvoiceCreatorLineItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace App\Twig;
12+
namespace App\Twig\Components;
1313

1414
use App\Entity\Product;
1515
use App\Repository\ProductRepository;

0 commit comments

Comments
 (0)