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

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

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

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

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

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

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

Метод Описание
buildListener ( string $class, string $method, array $events ) : string Build the event listener for the class and method.
getClassesToScan ( ) : array Get all of the ReflectionClass instances in the scan path.
getReader ( ) : Doctrine\Common\Annotations\SimpleAnnotationReader Get an annotation reader instance.

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

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

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

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

Build the event listener for the class and method.
protected buildListener ( string $class, string $method, array $events ) : string
$class string
$method string
$events array
Результат string

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 path.
protected getClassesToScan ( ) : array
Результат array

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

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

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

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

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

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

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