[Routing] fixed PhpFileLoader
This commit is contained in:
parent
a506f2ade8
commit
a40a7b8f36
@ -49,6 +49,6 @@ class PhpFileLoader extends FileLoader
|
||||
*/
|
||||
public function supports($resource)
|
||||
{
|
||||
return is_string($resource) && 'php' === pathinfo($resource, PATHINFO_EXTENSION);
|
||||
return is_string($resource) && 'php' === pathinfo($resource, PATHINFO_EXTENSION) && is_file($this->getAbsolutePath($resource));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user