ApiServiceProviderRegistration
in package
implements
Bootstrapper
Class ApiServiceProviderRegistration
Interfaces, Classes and Traits
- Bootstrapper
- Interface Bootstrapper
Table of Contents
- API_COMPONENT_SERVICE_PROVIDERS = [GambioApiApplicationAuthRequestAuthenticationServiceServiceProvider::class, GambioApiApplicationMiddlewareApiMiddlewareServiceProvider::class, GambioApiApplicationErrorHandlingApiErrorHandlerServiceProvider::class]
- CACHE_KEY = 'api_service_provider_registration'
- CACHE_NAMESPACE = 'application'
- boot() : void
- Application bootstrapping.
- getCacheFactory() : CacheFactory
- getEnvironment() : Environment
- getPath() : Path
- getServiceProviders() : array<string|int, mixed>
- Loads and returns service providers from the `GambioApi/Modules` directory.
- registerServiceProvider() : void
- Registers the given list of service providers to the application.
Constants
API_COMPONENT_SERVICE_PROVIDERS
private
mixed
API_COMPONENT_SERVICE_PROVIDERS
= [GambioApiApplicationAuthRequestAuthenticationServiceServiceProvider::class, GambioApiApplicationMiddlewareApiMiddlewareServiceProvider::class, GambioApiApplicationErrorHandlingApiErrorHandlerServiceProvider::class]
CACHE_KEY
private
mixed
CACHE_KEY
= 'api_service_provider_registration'
CACHE_NAMESPACE
private
mixed
CACHE_NAMESPACE
= 'application'
Methods
boot()
Application bootstrapping.
public
boot(Application $application) : void
Parameters
- $application : Application
Tags
Return values
void —getCacheFactory()
private
getCacheFactory(Application $application) : CacheFactory
Parameters
- $application : Application
Return values
CacheFactory —getEnvironment()
private
getEnvironment(Application $application) : Environment
Parameters
- $application : Application
Return values
Environment —getPath()
private
getPath(Application $application) : Path
Parameters
- $application : Application
Return values
Path —getServiceProviders()
Loads and returns service providers from the `GambioApi/Modules` directory.
private
getServiceProviders(Path $path) : array<string|int, mixed>
Parameters
- $path : Path
Return values
array<string|int, mixed> —registerServiceProvider()
Registers the given list of service providers to the application.
private
registerServiceProvider(array<string|int, mixed> $serviceProviders, Application $application) : void
Parameters
- $serviceProviders : array<string|int, mixed>
- $application : Application