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

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$scan array The path to scan for annotations.

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

Метод Описание
__construct ( array $scan ) : void Create a new scanner instance.
create ( array $scan ) : static 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.
getClassesToScan ( ) : array Get all of the ReflectionClass instances in the scan array.
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.
getReader ( ) : Doctrine\Common\Annotations\SimpleAnnotationReader Get an annotation reader instance.

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

__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

create() публичный статический метод

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

getClassesToScan() защищенный метод

Get all of the ReflectionClass instances in the scan array.
protected getClassesToScan ( ) : array
Результат array

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

getReader() защищенный метод

Get an annotation reader instance.
protected getReader ( ) : Doctrine\Common\Annotations\SimpleAnnotationReader
Результат Doctrine\Common\Annotations\SimpleAnnotationReader

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

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

Описание свойств

$scan защищенное свойство

The path to scan for annotations.
protected array $scan
Результат array