class AttributeRouteControllerLoader extendsAttributeClassLoader

AttributeRouteControllerLoader is an implementation of AttributeClassLoader that sets the '_controller' default based on the class and method names.

Methods

void
configureRoute(Route$route,ReflectionClass$class,ReflectionMethod$method,object$annot)

Configures the _controller default parameter of a given Route instance.

string
getDefaultRouteName(ReflectionClass$class,ReflectionMethod$method)

Makes the default route name more sane by removing common keywords.

Details

protectedvoid configureRoute(Route$route,ReflectionClass$class,ReflectionMethod$method,object$annot)

Configures the _controller default parameter of a given Route instance.

Parameters

Route $route
ReflectionClass $class
ReflectionMethod $method
object $annot

Return Value

void

protectedstring getDefaultRouteName(ReflectionClass$class,ReflectionMethod$method)

Makes the default route name more sane by removing common keywords.

Parameters

ReflectionClass $class
ReflectionMethod $method

Return Value

string