You are here

public function AnnotationFileLoader::supports in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/routing/Loader/AnnotationFileLoader.php \Symfony\Component\Routing\Loader\AnnotationFileLoader::supports()
1 method overrides AnnotationFileLoader::supports()
AnnotationDirectoryLoader::supports in vendor/symfony/routing/Loader/AnnotationDirectoryLoader.php

File

vendor/symfony/routing/Loader/AnnotationFileLoader.php, line 74

Class

AnnotationFileLoader
AnnotationFileLoader loads routing information from annotations set on a PHP class and its methods.

Namespace

Symfony\Component\Routing\Loader

Code

public function supports($resource, $type = null) {
  return is_string($resource) && 'php' === pathinfo($resource, PATHINFO_EXTENSION) && (!$type || 'annotation' === $type);
}