ServiceProvider extends AbstractServiceProvider
Table of Contents
Methods
- addEventListeners() : ListenerProvider
- configureBackendRoutes() : ArrayObject
- configureDashboardPresetRegistry() : DashboardPresetRegistry
- configureDashboardPresets() : ArrayObject
- configureIcons() : ArrayObject
- configureMiddlewares() : ArrayObject
- configureWidgetGroupRegistry() : WidgetGroupRegistry
- configureWidgetGroups() : ArrayObject
- configureWidgets() : ArrayObject
- getConfigurationWarmer() : Closure
- getDashboardPresets() : ArrayObject
- 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.
- getWidgetGroups() : ArrayObject
- getWidgets() : ArrayObject
- 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
- getPathsOfInstalledPackages() : array<string|int, mixed>
- new() : mixed
- Create an instance of a class. Supports auto injection of the logger.
Methods
addEventListeners()
public
static addEventListeners(ContainerInterface $container, ListenerProvider $listenerProvider) : ListenerProvider
Parameters
- $container : ContainerInterface
- $listenerProvider : ListenerProvider
Return values
ListenerProviderconfigureBackendRoutes()
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
ArrayObjectconfigureDashboardPresetRegistry()
public
static configureDashboardPresetRegistry(ContainerInterface $container[, DashboardPresetRegistry|null $dashboardPresetRegistry = null ]) : DashboardPresetRegistry
Parameters
- $container : ContainerInterface
- $dashboardPresetRegistry : DashboardPresetRegistry|null = null
Return values
DashboardPresetRegistryconfigureDashboardPresets()
public
static configureDashboardPresets(ContainerInterface $container, ArrayObject $presets) : ArrayObject
Parameters
- $container : ContainerInterface
- $presets : ArrayObject
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
ArrayObjectconfigureWidgetGroupRegistry()
public
static configureWidgetGroupRegistry(ContainerInterface $container[, WidgetGroupRegistry|null $widgetGroupRegistry = null ]) : WidgetGroupRegistry
Parameters
- $container : ContainerInterface
- $widgetGroupRegistry : WidgetGroupRegistry|null = null
Return values
WidgetGroupRegistryconfigureWidgetGroups()
public
static configureWidgetGroups(ContainerInterface $container, ArrayObject $widgetGroups[, string|null $path = null ]) : ArrayObject
Parameters
- $container : ContainerInterface
- $widgetGroups : ArrayObject
- $path : string|null = null
-
supplied when invoked internally through PseudoServiceProvider
Return values
ArrayObjectconfigureWidgets()
public
static configureWidgets(ContainerInterface $container, ArrayObject $widgets[, string|null $path = null ]) : ArrayObject
Parameters
- $container : ContainerInterface
- $widgets : ArrayObject
- $path : string|null = null
-
supplied when invoked internally through PseudoServiceProvider
Return values
ArrayObjectgetConfigurationWarmer()
public
static getConfigurationWarmer(ContainerInterface $container) : Closure
Parameters
- $container : ContainerInterface
Return values
ClosuregetDashboardPresets()
public
static getDashboardPresets(ContainerInterface $container) : ArrayObject
Parameters
- $container : ContainerInterface
Return values
ArrayObjectgetExtensions()
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>
Tags
Return values
array<string|int, mixed>getWidgetGroups()
public
static getWidgetGroups(ContainerInterface $container) : ArrayObject
Parameters
- $container : ContainerInterface
Return values
ArrayObjectgetWidgets()
public
static getWidgets(ContainerInterface $container) : ArrayObject
Parameters
- $container : ContainerInterface
Return values
ArrayObjectgetPackagePath()
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
Tags
Return values
stringgetPathsOfInstalledPackages()
protected
static getPathsOfInstalledPackages() : array<string|int, mixed>
Return values
array<string|int, mixed>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