[Routing] fixed PhpFileLoader

This commit is contained in:
Fabien Potencier 2010-08-20 22:56:38 +02:00
parent a506f2ade8
commit a40a7b8f36

View File

@ -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));
}
}