PHP Класс Collective\Annotations\Routing\Annotations\Scanner

Наследование: extends Collective\Annotations\AnnotationScanner
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $scan ) : void Create a new scanner instance.
getRouteDefinitions ( ) : string Convert the scanned annotations into route definitions.

Защищенные методы

Метод Описание
addEndpoint ( EndpointCollection $endpoints, ReflectionClass $class, string $method, array $annotations ) : void Create a new endpoint in the collection.
getEndpointsInClass ( ReflectionClass $class, AnnotationSet $annotations ) : EndpointCollection Build the Endpoints for the given class.
getEndpointsInClasses ( Doctrine\Common\Annotations\SimpleAnnotationReader $reader ) : EndpointCollection Scan the directory and generate the route manifest.

Описание методов

__construct() публичный Метод

Create a new scanner instance.
public __construct ( array $scan ) : void
$scan array
Результат void

addEndpoint() защищенный Метод

Create a new endpoint in the collection.
protected addEndpoint ( EndpointCollection $endpoints, ReflectionClass $class, string $method, array $annotations ) : void
$endpoints EndpointCollection
$class ReflectionClass
$method string
$annotations array
Результат void

getEndpointsInClass() защищенный Метод

Build the Endpoints for the given class.
protected getEndpointsInClass ( ReflectionClass $class, AnnotationSet $annotations ) : EndpointCollection
$class ReflectionClass
$annotations AnnotationSet
Результат EndpointCollection

getEndpointsInClasses() защищенный Метод

Scan the directory and generate the route manifest.
protected getEndpointsInClasses ( Doctrine\Common\Annotations\SimpleAnnotationReader $reader ) : EndpointCollection
$reader Doctrine\Common\Annotations\SimpleAnnotationReader
Результат EndpointCollection

getRouteDefinitions() публичный Метод

Convert the scanned annotations into route definitions.
public getRouteDefinitions ( ) : string
Результат string