AnnotationDirectoryLoader
class AnnotationDirectoryLoader extends AnnotationFileLoader
AnnotationDirectoryLoader loads routing information from annotations set on PHP classes and methods.
Methods
mixed
import(mixed $resource, string $type = null, Boolean $ignoreErrors = false, string $sourceResource = null)
Imports a resource.
from FileLoader
resolve(mixed $resource, string $type = null)
Finds a loader able to load an imported resource.
from Loader
__construct(FileLocatorInterface $locator, AnnotationClassLoader $loader, string|array $paths = array())
Constructor.
from AnnotationFileLoader
load(string $path, string $type = null)
Loads from annotations from a directory.
Boolean
supports(mixed $resource, string $type = null)
Returns true if this class supports the given resource.
Details
in Loader at line line 30
LoaderResolverInterface
getResolver()
Gets the loader resolver.
in Loader at line line 40
setResolver(LoaderResolverInterface $resolver)
Sets the loader resolver.
in FileLoader at line line 64
mixed
import(mixed $resource, string $type = null, Boolean $ignoreErrors = false, string $sourceResource = null)
Imports a resource.
in Loader at line line 68
LoaderInterface
resolve(mixed $resource, string $type = null)
Finds a loader able to load an imported resource.
in AnnotationFileLoader at line line 38
__construct(FileLocatorInterface $locator, AnnotationClassLoader $loader, string|array $paths = array())
Constructor.
in FileLoader at line line 41
setCurrentDir($dir)
in FileLoader at line line 46
getLocator()
at line line 35
load(string $path, string $type = null)
Loads from annotations from a directory.
at line line 67
Boolean
supports(mixed $resource, string $type = null)
Returns true if this class supports the given resource.