Sensio\Bundle\FrameworkExtraBundle\Routing\AnnotatedRouteControllerLoader
AnnotatedRouteControllerLoader is an implementation of AnnotationClassLoader that sets the '_controller' default based on the class and method names.
It also parse the @Method annotation.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class AnnotatedRouteControllerLoader
extends AnnotationClassLoader
{
- // Inherited members from AnnotationClassLoader
- protected Reader $reader;
- protected string $routeAnnotationClass;
- protected integer $defaultRouteIndex;
- // methods
- protected void configureRoute()
- protected string getDefaultRouteName()
- // Inherited methods from AnnotationClassLoader
- public void __construct()
- public void setRouteAnnotationClass()
- public RouteCollection load()
- protected void addRoute()
- public void supports()
- public void setResolver()
- public void getResolver()
- protected string getDefaultRouteName()
- protected abstract void configureRoute()
Hierarchy
Members
protected
- $defaultRouteIndex — integer
- $reader — Doctrine\Common\Annotations\Reader
- $routeAnnotationClass — string
Methods
protected
- configureRoute() — Configures the _controller default parameter and eventually the _method requirement of a given Route instance.
- getDefaultRouteName() — Makes the default route name more sane by removing common keywords.
Inherited from Symfony\Component\Routing\Loader\AnnotationClassLoader
protected
- addRoute()
- configureRoute()
- getDefaultRouteName() — Gets the default route name for a class method.
public
- getResolver() — {@inheritdoc}
- load() — Loads from annotations from a class.
- setResolver() — {@inheritdoc}
- setRouteAnnotationClass() — Sets the annotation class to read route properties from.
- supports() — {@inheritdoc}