ServiceProvider extends AbstractServiceProvider
Table of Contents
Methods
- configureBackendRoutes() : ArrayObject
- configureIcons() : ArrayObject
- configureMiddlewares() : ArrayObject
- getBackendConfigurationManager() : BackendConfigurationManager
- getConfigurationManager() : ConfigurationManager
- getEnvironmentService() : EnvironmentService
- getExtensions() : array<string|int, mixed>
- Returns a list of all container entries extended by this service provider.
- getExtensionService() : ExtensionService
- getFactories() : array<string|int, mixed>
- Returns a list of all container entries registered by this service provider.
- getHashService() : HashService
- getImageService() : ImageService
- getObjectContainer() : Container
- getObjectManager() : ObjectManager
- getReflectionService() : ReflectionService
- getSignalSlotDispatcher() : Dispatcher
- 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
ArrayObjectgetBackendConfigurationManager()
public
static getBackendConfigurationManager(ContainerInterface $container) : BackendConfigurationManager
Parameters
- $container : ContainerInterface
Return values
BackendConfigurationManagergetConfigurationManager()
public
static getConfigurationManager(ContainerInterface $container) : ConfigurationManager
Parameters
- $container : ContainerInterface
Return values
ConfigurationManagergetEnvironmentService()
public
static getEnvironmentService(ContainerInterface $container) : EnvironmentService
since v11, will be removed in v12
Parameters
- $container : ContainerInterface
Return values
EnvironmentServicegetExtensions()
Returns a list of all container entries extended by this service provider.
public
getExtensions() : array<string|int, mixed>
Return values
array<string|int, mixed>getExtensionService()
public
static getExtensionService(ContainerInterface $container) : ExtensionService
Parameters
- $container : ContainerInterface
Return values
ExtensionServicegetFactories()
Returns a list of all container entries registered by this service provider.
public
getFactories() : array<string|int, mixed>
Return values
array<string|int, mixed>getHashService()
public
static getHashService(ContainerInterface $container) : HashService
Parameters
- $container : ContainerInterface
Return values
HashServicegetImageService()
public
static getImageService(ContainerInterface $container) : ImageService
Parameters
- $container : ContainerInterface
Return values
ImageServicegetObjectContainer()
public
static getObjectContainer(ContainerInterface $container) : Container
since v11, will be removed in v12
Parameters
- $container : ContainerInterface
Return values
ContainergetObjectManager()
public
static getObjectManager(ContainerInterface $container) : ObjectManager
since v11, will be removed in v12
Parameters
- $container : ContainerInterface
Return values
ObjectManagergetReflectionService()
public
static getReflectionService(ContainerInterface $container) : ReflectionService
Parameters
- $container : ContainerInterface
Return values
ReflectionServicegetSignalSlotDispatcher()
public
static getSignalSlotDispatcher(ContainerInterface $container) : Dispatcher
since v11, will be removed in v12
Parameters
- $container : ContainerInterface
Return values
DispatchergetPackagePath()
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
stringnew()
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