AbstractServiceProvider
abstract class \
- Implements
- ServiceProviderInterface
Internal
Table of Contents
Interfaces
- ServiceProviderInterface
- A service provider provides entries to a container. Inspired by: https://github.com/container-interop/service-provider/blob/v0.4.0/src/ServiceProviderInterface.php
Methods
- configureBackendRoutes() : ArrayObject
- configureIcons() : ArrayObject
- configureMiddlewares() : ArrayObject
- getExtensions() : array
- Returns a list of all container entries extended by this service provider.
- getFactories() : array
- Returns a list of all container entries registered by this service provider.
- 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
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
ArrayObjectconfigureIcons()
public
static configureIcons(ContainerInterface $container, ArrayObject $icons[, string|null $path = null ]) : ArrayObject
Parameters
- $container : ContainerInterface
- $icons : ArrayObject
- $path : string|null = null
Return values
ArrayObjectconfigureMiddlewares()
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
ArrayObjectgetExtensions()
Returns a list of all container entries extended by this service provider.
public
getExtensions() : array
Return values
arraygetFactories()
Returns a list of all container entries registered by this service provider.
public
abstract getFactories() : array
Return values
arraygetPackagePath()
Return the path to the package location, including trailing slash should return the value of: __DIR__ . '/../' for ServiceProviders located in the Classes/ directory
protected
abstract static getPackagePath() : string
Return values
stringnew()
Create an instance of a class. Supports auto injection of the logger.
protected
static new(ContainerInterface $container, string $className[, array $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 = []
-
Arguments for the constructor