Skip to content

Commit

Permalink
Canonicalize the path
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Jan 17, 2022
1 parent 728c12f commit 91d6559
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ public function testReturnsWildCardWhenBackendRequest(): void
$container->set('contao.routing.scope_matcher', $scopeMatcher);
$container->set('router', $router);
$container->set('translator', $translator);
$container->setParameter('kernel.project_dir', \dirname(__DIR__, 3));

TemplateLoader::addFile('be_wildcard', __DIR__.'/../../../src/Resources/contao/templates/backend');
TemplateLoader::addFile('be_wildcard', 'src/Resources/contao/templates/backend');

$controller = new RootPageDependentModulesController();
$controller->setContainer($container);
Expand Down

0 comments on commit 91d6559

Please sign in to comment.