@api
File
- drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Loader/PhpFileLoader.php, line 58
Class
- PhpFileLoader
- PhpFileLoader loads routes from a PHP file.
Namespace
Symfony\Component\Routing\Loader
Code
public function supports($resource, $type = null) {
return is_string($resource) && 'php' === pathinfo($resource, PATHINFO_EXTENSION) && (!$type || 'php' === $type);
}