ServiceProvider extends AbstractServiceProvider

Internal

Table of Contents

Methods

addEventListeners()  : ListenerProvider
configureBackendRouter()  : Router
configureBackendRoutes()  : ArrayObject
configureIcons()  : ArrayObject
configureMiddlewares()  : ArrayObject
getApplication()  : Application
getBackendMiddlewares()  : ArrayObject
getBackendRoutes()  : ArrayObject
getBackendRoutesWarmer()  : Closure
getExtensions()  : array<string|int, mixed>
Returns a list of all container entries extended by this service provider.
getFactories()  : array<string|int, mixed>
Returns a list of all container entries registered by this service provider.
getRequestHandler()  : RequestHandler
getRouteDispatcher()  : RouteDispatcher
getUriBuilder()  : UriBuilder
getPackagePath()  : string
Return the path to the package location, including trailing slash should return the value of: __DIR__ . '/../' for ServiceProviders located in the Classes/ directory
new()  : mixed
Create an instance of a class. Supports auto injection of the logger.

Methods

configureBackendRouter()

public static configureBackendRouter(ContainerInterface $container[, Router|null $router = null ]) : Router
Parameters
$container : ContainerInterface
$router : Router|null = null
Return values
Router

configureBackendRoutes()

public static configureBackendRoutes(ContainerInterface $container, ArrayObject $routes[, string|null $path = null ]) : ArrayObject
Parameters
$container : ContainerInterface
$routes : ArrayObject
$path : string|null = null

supplied when invoked internally through PseudoServiceProvider

Return values
ArrayObject

configureIcons()

public static configureIcons(ContainerInterface $container, ArrayObject $icons[, string|null $path = null ]) : ArrayObject
Parameters
$container : ContainerInterface
$icons : ArrayObject
$path : string|null = null
Return values
ArrayObject

configureMiddlewares()

public static configureMiddlewares(ContainerInterface $container, ArrayObject $middlewares[, string|null $path = null ]) : ArrayObject
Parameters
$container : ContainerInterface
$middlewares : ArrayObject
$path : string|null = null

supplied when invoked internally through PseudoServiceProvider

Return values
ArrayObject

getApplication()

public static getApplication(ContainerInterface $container) : Application
Parameters
$container : ContainerInterface
Return values
Application

getBackendMiddlewares()

public static getBackendMiddlewares(ContainerInterface $container) : ArrayObject
Parameters
$container : ContainerInterface
Tags
throws
InvalidDataException
throws
Exception
Return values
ArrayObject

getBackendRoutes()

public static getBackendRoutes(ContainerInterface $container) : ArrayObject
Parameters
$container : ContainerInterface
Return values
ArrayObject

getBackendRoutesWarmer()

public static getBackendRoutesWarmer(ContainerInterface $container) : Closure
Parameters
$container : ContainerInterface
Return values
Closure

getExtensions()

Returns a list of all container entries extended by this service provider.

public getExtensions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFactories()

Returns a list of all container entries registered by this service provider.

public getFactories() : array<string|int, mixed>
Return values
array<string|int, mixed>

getUriBuilder()

public static getUriBuilder(ContainerInterface $container) : UriBuilder
Parameters
$container : ContainerInterface
Return values
UriBuilder

getPackagePath()

Return the path to the package location, including trailing slash should return the value of: __DIR__ . '/../' for ServiceProviders located in the Classes/ directory

protected static getPackagePath() : string
Return values
string

new()

Create an instance of a class. Supports auto injection of the logger.

protected static new(ContainerInterface $container, string $className[, array<string|int, mixed> $constructorArguments = [] ]) : mixed
Parameters
$container : ContainerInterface
$className : string

name of the class to instantiate, must not be empty and not start with a backslash

$constructorArguments : array<string|int, mixed> = []

Arguments for the constructor


        
On this page

Search results