class AnnotatedRouteControllerLoader extends AnnotationClassLoader
AnnotatedRouteControllerLoader is an implementation of AnnotationClassLoader that sets the '_controller' default based on the class and method names.
| __construct(Reader $reader) Constructor. | from AnnotationClassLoader | |
| setRouteAnnotationClass(string $class) Sets the annotation class to read route properties from. | from AnnotationClassLoader | |
| load(string $class, string|null $type = null) Loads from annotations from a class. | from AnnotationClassLoader | |
| bool | supports(mixed $resource, string|null $type = null) Returns whether this class supports the given resource. | from AnnotationClassLoader |
| setResolver(LoaderResolverInterface $resolver) Sets the loader resolver. | from AnnotationClassLoader | |
| LoaderResolverInterface | getResolver() Gets the loader resolver. | from AnnotationClassLoader |
Constructor.
| Reader | $reader |
Sets the annotation class to read route properties from.
| string | $class | A fully-qualified class name |
Loads from annotations from a class.
| string | $class | A class name |
| string|null | $type | The resource type or null if unknown |
| InvalidArgumentException | When route can't be parsed |
Returns whether this class supports the given resource.
| mixed | $resource | A resource |
| string|null | $type | The resource type or null if unknown |
| bool | True if this class supports the given resource, false otherwise |
Sets the loader resolver.
| LoaderResolverInterface | $resolver | A LoaderResolverInterface instance |
Gets the loader resolver.
| LoaderResolverInterface | A LoaderResolverInterface instance |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Bundle/FrameworkBundle/Routing/AnnotatedRouteControllerLoader.html