AnnotationDirectoryLoader
class AnnotationDirectoryLoader extends AnnotationFileLoader
AnnotationDirectoryLoader loads routing information from annotations set on PHP classes and methods.
Properties
protected | $resolver | from Loader | |
static protected | $loading | from FileLoader | |
protected | $locator | from FileLoader | |
protected | $loader | from AnnotationFileLoader |
Methods
mixed
import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null)
Imports a resource.
from FileLoader
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.
from Loader
from AnnotationFileLoader
glob(string $pattern, bool $recursive, $resource = null, bool $ignoreErrors = false, bool $forExclusion = false, array $excluded = array())
No description
from FileLoader
load(string $path, string|null $type = null)
Loads from annotations from a directory.
bool
supports(mixed $resource, string|null $type = null)
Returns whether this class supports the given resource.
string|false
findClass(string $file)
Returns the full class name for the first class in the file.
from AnnotationFileLoader
Details
mixed
import(mixed $resource, string|null $type = null, bool $ignoreErrors = false, string|null $sourceResource = null)
Imports a resource.
$this|LoaderInterface
resolve(mixed $resource, string|null $type = null)
Finds a loader able to load an imported resource.