PHP 클래스 Adamgoose\Routing\Annotations\Scanner

파일 보기 프로젝트 열기: adamgoose/laravel-annotations 1 사용 예제들

보호된 프로퍼티들

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