PHP Класс Collective\Annotations\AnnotationsServiceProvider

Наследование: extends Illuminate\Support\ServiceProvider, use trait Illuminate\Console\AppNamespaceDetectorTrait
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$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