From 96b5cbfc53aed19a242dcd2cabb59b2b909310f4 Mon Sep 17 00:00:00 2001 From: Jordi Date: Mon, 21 Oct 2024 15:45:34 +0200 Subject: [PATCH 1/2] bug --- tests/App/Kernel.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/App/Kernel.php b/tests/App/Kernel.php index 713748e..e8e3736 100644 --- a/tests/App/Kernel.php +++ b/tests/App/Kernel.php @@ -79,6 +79,8 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa { $container->setParameter('kernel.default_locale', 'en'); + $loader->load('@RunroomSamplesBundle/config/app/config.yaml'); + $container->loadFromExtension('framework', [ 'annotations' => false, 'test' => true, @@ -145,6 +147,8 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa protected function configureRoutes(RoutingConfigurator $routes): void { + $routes->import('@RunroomSamplesBundle/config/routing.yaml'); + $routes->add('route.entity', '/entity/{slug}') ->controller('controller'); } From bbd3c02f792d7ff84a6018c1b69770dc8b1b59c8 Mon Sep 17 00:00:00 2001 From: Jordi Date: Mon, 21 Oct 2024 15:52:53 +0200 Subject: [PATCH 2/2] fix tests --- src/RunroomSamplesBundle.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/RunroomSamplesBundle.php b/src/RunroomSamplesBundle.php index dd44167..0749e38 100644 --- a/src/RunroomSamplesBundle.php +++ b/src/RunroomSamplesBundle.php @@ -15,4 +15,10 @@ use Symfony\Component\HttpKernel\Bundle\Bundle; -final class RunroomSamplesBundle extends Bundle {} +final class RunroomSamplesBundle extends Bundle +{ + public function getPath(): string + { + return \dirname(__DIR__); + } +}