Skip to content

Commit

Permalink
loadRoutes shoud receive RoutingPhpFileLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
grachevko committed Sep 17, 2020
1 parent 4d1a522 commit 25a1131
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -152,7 +152,7 @@ public function loadRoutes(LoaderInterface $loader)
{
$file = (new \ReflectionObject($this))->getFileName();
/* @var RoutingPhpFileLoader $kernelLoader */
$kernelLoader = $loader->getResolver()->resolve($file);
$kernelLoader = $loader->getResolver()->resolve($file, 'php');
$kernelLoader->setCurrentDir(\dirname($file));
$collection = new RouteCollection();

Expand Down

0 comments on commit 25a1131

Please sign in to comment.