Explorar el Código

[Routing] fixed PhpFileLoader

Fabien Potencier hace 14 años
padre
commit
a40a7b8f36
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Symfony/Components/Routing/Loader/PhpFileLoader.php

+ 1 - 1
src/Symfony/Components/Routing/Loader/PhpFileLoader.php

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