PHP 클래스 Collective\Annotations\AnnotationsServiceProvider

상속: extends Illuminate\Support\ServiceProvider, use trait Illuminate\Console\AppNamespaceDetectorTrait
파일 보기 프로젝트 열기: laravelcollective/annotations 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$commands array The commands to be registered.
$finder AnnotationFinder File finder for annotations.
$scanControllers boolean Determines whether or not to automatically scan the controllers directory (App\Http\Controllers) for routes.
$scanEvents array The classes to scan for event annotations.
$scanEverything boolean Determines whether or not to automatically scan all namespaced classes for event, route, and model annotations.
$scanModels array The classes to scan for model binding annotations.
$scanRoutes array The classes to scan for route annotations.
$scanWhenLocal boolean Determines if we will auto-scan in the local environment.

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Foundation\Application $app )
addEventAnnotations ( Scanner $scanner ) Add annotation classes to the event scanner.
addModelAnnotations ( Scanner $scanner ) Add annotation classes to the model scanner.
addRoutingAnnotations ( Scanner $scanner ) Add annotation classes to the route scanner.
boot ( ) : void Register the application's annotated event listeners.
convertNamespaceToPath ( string $namespace ) : string Convert the given namespace to a file path.
eventScans ( ) : array Get the classes to be scanned by the provider.
getClassesFromNamespace ( string $namespace, null $base = null ) : array Get a list of the classes in a namespace. Leaving the second argument will scan for classes within the project's app directory.
loadAnnotatedEvents ( ) : void Load the annotated events.
modelScans ( ) : array Get the classes to be scanned by the provider.
register ( ) : void Register the service provider.
routeScans ( ) : array Get the classes to be scanned by the provider.

보호된 메소드들

메소드 설명
getAllClasses ( ) : array Get a list of classes in the root namespace.
loadAnnotatedModels ( ) : void Load the annotated models.
loadAnnotatedRoutes ( ) : void Load the annotated routes.
loadScannedEvents ( ) : void Load the scanned events for the application.
loadScannedModels ( ) : void Load the scanned application models.
loadScannedRoutes ( ) : void Load the scanned application routes.
registerCommands ( ) : void Register the commands.
registerEventScanCommand ( ) : void Register the command.
registerEventScanner ( ) : void Register the scanner.
registerModelScanCommand ( ) : void Register the command.
registerModelScanner ( ) : void Register the scanner.
registerRouteScanCommand ( ) : void Register the command.
registerRouteScanner ( ) : void Register the scanner.
scanEvents ( ) : void Scan the events for the application.
scanModels ( ) : void Scan the models and write the scanned models file.
scanRoutes ( ) : void Scan the routes and write the scanned routes file.

메소드 상세

__construct() 공개 메소드

public __construct ( Illuminate\Contracts\Foundation\Application $app )
$app Illuminate\Contracts\Foundation\Application

addEventAnnotations() 공개 메소드

Add annotation classes to the event scanner.
public addEventAnnotations ( Scanner $scanner )
$scanner Collective\Annotations\Events\Annotations\Scanner

addModelAnnotations() 공개 메소드

Add annotation classes to the model scanner.
public addModelAnnotations ( Scanner $scanner )
$scanner Collective\Annotations\Database\Eloquent\Annotations\Scanner

addRoutingAnnotations() 공개 메소드

Add annotation classes to the route scanner.
public addRoutingAnnotations ( Scanner $scanner )
$scanner Collective\Annotations\Routing\Annotations\Scanner

boot() 공개 메소드

Register the application's annotated event listeners.
public boot ( ) : void
리턴 void

convertNamespaceToPath() 공개 메소드

Convert the given namespace to a file path.
public convertNamespaceToPath ( string $namespace ) : string
$namespace string the namespace to convert
리턴 string

eventScans() 공개 메소드

Get the classes to be scanned by the provider.
public eventScans ( ) : array
리턴 array

getAllClasses() 보호된 메소드

Get a list of classes in the root namespace.
protected getAllClasses ( ) : array
리턴 array

getClassesFromNamespace() 공개 메소드

Get a list of the classes in a namespace. Leaving the second argument will scan for classes within the project's app directory.
public getClassesFromNamespace ( string $namespace, null $base = null ) : array
$namespace string the namespace to search
$base null
리턴 array

loadAnnotatedEvents() 공개 메소드

Load the annotated events.
public loadAnnotatedEvents ( ) : void
리턴 void

loadAnnotatedModels() 보호된 메소드

Load the annotated models.
protected loadAnnotatedModels ( ) : void
리턴 void

loadAnnotatedRoutes() 보호된 메소드

Load the annotated routes.
protected loadAnnotatedRoutes ( ) : void
리턴 void

loadScannedEvents() 보호된 메소드

Load the scanned events for the application.
protected loadScannedEvents ( ) : void
리턴 void

loadScannedModels() 보호된 메소드

Load the scanned application models.
protected loadScannedModels ( ) : void
리턴 void

loadScannedRoutes() 보호된 메소드

Load the scanned application routes.
protected loadScannedRoutes ( ) : void
리턴 void

modelScans() 공개 메소드

Get the classes to be scanned by the provider.
public modelScans ( ) : array
리턴 array

register() 공개 메소드

Register the service provider.
public register ( ) : void
리턴 void

registerCommands() 보호된 메소드

Register the commands.
protected registerCommands ( ) : void
리턴 void

registerEventScanCommand() 보호된 메소드

Register the command.
protected registerEventScanCommand ( ) : void
리턴 void

registerEventScanner() 보호된 메소드

Register the scanner.
protected registerEventScanner ( ) : void
리턴 void

registerModelScanCommand() 보호된 메소드

Register the command.
protected registerModelScanCommand ( ) : void
리턴 void

registerModelScanner() 보호된 메소드

Register the scanner.
protected registerModelScanner ( ) : void
리턴 void

registerRouteScanCommand() 보호된 메소드

Register the command.
protected registerRouteScanCommand ( ) : void
리턴 void

registerRouteScanner() 보호된 메소드

Register the scanner.
protected registerRouteScanner ( ) : void
리턴 void

routeScans() 공개 메소드

Get the classes to be scanned by the provider.
public routeScans ( ) : array
리턴 array

scanEvents() 보호된 메소드

Scan the events for the application.
protected scanEvents ( ) : void
리턴 void

scanModels() 보호된 메소드

Scan the models and write the scanned models file.
protected scanModels ( ) : void
리턴 void

scanRoutes() 보호된 메소드

Scan the routes and write the scanned routes file.
protected scanRoutes ( ) : void
리턴 void

프로퍼티 상세

$commands 보호되어 있는 프로퍼티

The commands to be registered.
protected array $commands
리턴 array

$finder 보호되어 있는 프로퍼티

File finder for annotations.
protected AnnotationFinder,Collective\Annotations $finder
리턴 AnnotationFinder

$scanControllers 보호되어 있는 프로퍼티

Determines whether or not to automatically scan the controllers directory (App\Http\Controllers) for routes.
protected bool $scanControllers
리턴 boolean

$scanEvents 보호되어 있는 프로퍼티

The classes to scan for event annotations.
protected array $scanEvents
리턴 array

$scanEverything 보호되어 있는 프로퍼티

Determines whether or not to automatically scan all namespaced classes for event, route, and model annotations.
protected bool $scanEverything
리턴 boolean

$scanModels 보호되어 있는 프로퍼티

The classes to scan for model binding annotations.
protected array $scanModels
리턴 array

$scanRoutes 보호되어 있는 프로퍼티

The classes to scan for route annotations.
protected array $scanRoutes
리턴 array

$scanWhenLocal 보호되어 있는 프로퍼티

Determines if we will auto-scan in the local environment.
protected bool $scanWhenLocal
리턴 boolean