[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/routing/Loader/ -> AnnotationClassLoader.php (summary)

AnnotationClassLoader loads routing information from a PHP class and its methods. You need to define an implementation for the configureRoute() 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: 278 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  __construct()
  setRouteAnnotationClass()
  load()
  addRoute()
  supports()
  setResolver()
  getResolver()
  getDefaultRouteName()
  getGlobals()
  resetGlobals()
  createRoute()

Functions
Functions that are not part of a class:

__construct(Reader $reader)   X-Ref


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

param: RouteAnnotation $annot   or an object that exposes a similar interface
param: array           $globals

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.

return: string

getGlobals(\ReflectionClass $class)   X-Ref
No description

resetGlobals()   X-Ref
No description

createRoute($path, $defaults, $requirements, $options, $host, $schemes, $methods, $condition)   X-Ref
No description



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1