Skip to content

Commit

Permalink
Merge pull request #63 from Runroom/hotfix/bundle-definition
Browse files Browse the repository at this point in the history
Fix bundle definition to allow load config files from root
  • Loading branch information
jordisala1991 authored Oct 21, 2024
2 parents bef55b5 + bbd3c02 commit f8448b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/RunroomSamplesBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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__);
}
}
4 changes: 4 additions & 0 deletions tests/App/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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');
}
Expand Down

0 comments on commit f8448b9

Please sign in to comment.