Loader\AnnotationDirectoryLoader (Component\Routing)
Symfony\Component\Routing\Loader\AnnotationDirectoryLoader
class AnnotationDirectoryLoader extends AnnotationFileLoader
AnnotationDirectoryLoader loads routing information from annotations set on PHP classes and methods.
Methods
LoaderResolverInterface | getResolver() Gets the loader resolver. | from Loader |
setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. | from Loader | |
mixed | import(mixed $resource, string $type = null, Boolean $ignoreErrors = false, string $sourceResource = null) Imports a resource. | from FileLoader |
LoaderInterface | 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 | |
setCurrentDir($dir) | from FileLoader | |
getLocator() | from FileLoader | |
RouteCollection | load(string $path, string|null $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
public LoaderResolverInterface getResolver()
Gets the loader resolver.
public setResolver(LoaderResolverInterface $resolver)
Sets the loader resolver.
public mixed import(mixed $resource, string $type = null, Boolean $ignoreErrors = false, string $sourceResource = null)
Imports a resource.
public LoaderInterface resolve(mixed $resource, string $type = null)
Finds a loader able to load an imported resource.
public __construct(FileLocatorInterface $locator, AnnotationClassLoader $loader, string|array $paths = array())
Constructor.
public setCurrentDir($dir)
public getLocator()
public RouteCollection load(string $path, string|null $type = null)
Loads from annotations from a directory.
public Boolean supports(mixed $resource, string $type = null)
Returns true if this class supports the given resource.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Routing/Loader/AnnotationDirectoryLoader.html