PHP 클래스 Collective\Annotations\AnnotationScanner

상속: use trait NamespaceToPathConverterTrait
파일 보기 프로젝트 열기: laravelcollective/annotations 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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