[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
AnnotationClassLoader loads routing information from a PHP class and its methods. You need to define an implementation for the getRouteDefaults() method. Most of the time, this method should define some PHP callable to be called for the route (a controller in MVC speak).
Author: | Fabien Potencier <fabien@symfony.com> |
File Size: | 246 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
__construct(Reader $reader) X-Ref |
Constructor. param: Reader $reader |
setRouteAnnotationClass($class) X-Ref |
Sets the annotation class to read route properties from. param: string $class A fully-qualified class name |
load($class, $type = null) X-Ref |
Loads from annotations from a class. param: string $class A class name param: string|null $type The resource type return: RouteCollection A RouteCollection instance |
addRoute(RouteCollection $collection, $annot, $globals, \ReflectionClass $class, \ReflectionMethod $method) X-Ref |
No description |
supports($resource, $type = null) X-Ref |
{@inheritdoc} |
setResolver(LoaderResolverInterface $resolver) X-Ref |
{@inheritdoc} |
getResolver() X-Ref |
{@inheritdoc} |
getDefaultRouteName(\ReflectionClass $class, \ReflectionMethod $method) X-Ref |
Gets the default route name for a class method. param: \ReflectionClass $class param: \ReflectionMethod $method return: string |
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |