Overrides AnnotationFileLoader::supports
public function supports($resource, $type = null) {
try {
$path = $this->locator
->locate($resource);
} catch (\Exception $e) {
return false;
}
return is_string($resource) && is_dir($path) && (!$type || 'annotation' === $type);
}