Property | Type | Description | |
---|---|---|---|
$scan | array | The path to scan for annotations. |
Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
addEndpoint ( |
Create a new endpoint in the collection. | |
getClassesToScan ( ) : array | Get all of the ReflectionClass instances in the scan array. | |
getEndpointsInClass ( ReflectionClass $class, |
Build the Endpoints for the given class. | |
getEndpointsInClasses ( Doctrine\Common\Annotations\SimpleAnnotationReader $reader ) : |
Scan the directory and generate the route manifest. | |
getReader ( ) : Doctrine\Common\Annotations\SimpleAnnotationReader | Get an annotation reader instance. |
public __construct ( array $scan ) : void | ||
$scan | array | |
return | void |
protected getClassesToScan ( ) : array | ||
return | array |
protected getEndpointsInClass ( ReflectionClass $class, |
||
$class | ReflectionClass | |
$annotations | ||
return |
protected getEndpointsInClasses ( Doctrine\Common\Annotations\SimpleAnnotationReader $reader ) : |
||
$reader | Doctrine\Common\Annotations\SimpleAnnotationReader | |
return |
protected getReader ( ) : Doctrine\Common\Annotations\SimpleAnnotationReader | ||
return | Doctrine\Common\Annotations\SimpleAnnotationReader |
public getRouteDefinitions ( ) : string | ||
return | string |