phpDocumentor

ApiServiceProviderRegistration 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]

Methods

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
Return values
void

Search results