function AttributeFileLoader::supports
2 calls to AttributeFileLoader::supports()
- AttributeDirectoryLoader::load in vendor/
symfony/ routing/ Loader/ AttributeDirectoryLoader.php - AttributeDirectoryLoader::load in vendor/
symfony/ routing/ Loader/ AttributeDirectoryLoader.php
1 method overrides AttributeFileLoader::supports()
- AttributeDirectoryLoader::supports in vendor/
symfony/ routing/ Loader/ AttributeDirectoryLoader.php
File
-
vendor/
symfony/ routing/ Loader/ AttributeFileLoader.php, line 64
Class
- AttributeFileLoader
- AttributeFileLoader loads routing information from attributes set on a PHP class and its methods.
Namespace
Symfony\Component\Routing\LoaderCode
public function supports(mixed $resource, ?string $type = null) : bool {
return \is_string($resource) && 'php' === pathinfo($resource, \PATHINFO_EXTENSION) && (!$type || 'attribute' === $type);
}