class AnnotationFileLoader extends FileLoader
AnnotationFileLoader loads routing information from annotations set on a PHP class and its methods.
Methods
|
__construct(FileLocatorInterface $locator, AnnotationClassLoader $loader, string|array $paths = array())
Constructor. |
||
| setCurrentDir($dir) | from FileLoader | |
| getLocator() | from FileLoader | |
| mixed |
import(mixed $resource, string $type = null, Boolean $ignoreErrors = false, string $sourceResource = null)
Imports a resource. |
from FileLoader |
| RouteCollection |
load(string $file, string|null $type = null)
Loads from annotations from a file. |
|
|
supports($resource, $type = null)
{@inheritdoc} |
Details
at line 38
public
__construct(FileLocatorInterface $locator, AnnotationClassLoader $loader, string|array $paths = array())
Constructor.
in FileLoader at line 41
public
setCurrentDir($dir)
in FileLoader at line 46
public
getLocator()
in FileLoader at line 64
public mixed
import(mixed $resource, string $type = null, Boolean $ignoreErrors = false, string $sourceResource = null)
Imports a resource.
at line 59
public RouteCollection
load(string $file, string|null $type = null)
Loads from annotations from a file.
at line 75
public
supports($resource, $type = null)
{@inheritdoc}