public function AnnotationClassLoader::supports in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Loader/AnnotationClassLoader.php \Symfony\Component\Routing\Loader\AnnotationClassLoader::supports()
File
- vendor/
symfony/ routing/ Loader/ AnnotationClassLoader.php, line 171
Class
- AnnotationClassLoader
- AnnotationClassLoader loads routing information from a PHP class and its methods.
Namespace
Symfony\Component\Routing\LoaderCode
public function supports($resource, $type = null) {
return is_string($resource) && preg_match('/^(?:\\\\?[a-zA-Z_\\x7f-\\xff][a-zA-Z0-9_\\x7f-\\xff]*)+$/', $resource) && (!$type || 'annotation' === $type);
}