PHP Класс Collective\Annotations\AnnotationScanner

Наследование: use trait NamespaceToPathConverterTrait
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$namespaces string Namespaces to check for annotation reader annotation classes.
$scan array The paths to scan for annotations.

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

Метод Описание
__construct ( array $scan ) : void Create a new scanner instance.
addAnnotationNamespace ( string $namespace, string $path = null ) Add an annotation namespace for the SimpleAnnotationReader instance.
create ( array $scan ) : static Create a new scanner instance.
registerAnnotationsPathWithRegistry ( string $path ) Register the annotator files with the annotation registry.
setClassesToScan ( array $scans ) Set the classes to scan.

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

Метод Описание
getClassesToScan ( ) : array Get all of the ReflectionClass instances in the scan array.
getReader ( ) : Doctrine\Common\Annotations\SimpleAnnotationReader Get an annotation reader instance.

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

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

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

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

If the second parameter is null, it will assume the namespace is PSR-4'd inside your app folder.
public addAnnotationNamespace ( string $namespace, string $path = null )
$namespace string
$path 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 array.
protected getClassesToScan ( ) : array
Результат array

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

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

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

Register the annotator files with the annotation registry.

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

Set the classes to scan.
public setClassesToScan ( array $scans )
$scans array

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

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

Namespaces to check for annotation reader annotation classes.
protected string $namespaces
Результат string

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

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