‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\ServiceProvider Class Reference
Inheritance diagram for TYPO3\CMS\Backend\ServiceProvider:
TYPO3\CMS\Core\Package\AbstractServiceProvider TYPO3\CMS\Core\DependencyInjection\ServiceProviderInterface

Public Member Functions

 getFactories ()
 
 getExtensions ()
 

Static Public Member Functions

static getApplication (ContainerInterface $container)
 
static getRequestHandler (ContainerInterface $container)
 
static getRouteDispatcher (ContainerInterface $container)
 
static getUriBuilder (ContainerInterface $container)
 
static getModuleProvider (ContainerInterface $container)
 
static getModuleFactory (ContainerInterface $container)
 
static getModuleRegistry (ContainerInterface $container)
 
static getBackendMiddlewares (ContainerInterface $container)
 
static configureBackendRouter (ContainerInterface $container, Router $router=null)
 
static getBackendRoutes (ContainerInterface $container)
 
static getBackendRoutesWarmer (ContainerInterface $container)
 
static getBackendModules (ContainerInterface $container)
 
static getBackendModulesWarmer (ContainerInterface $container)
 
static addEventListeners (ContainerInterface $container, ListenerProvider $listenerProvider)
 
- ‪Static Public Member Functions inherited from ‪TYPO3\CMS\Core\Package\AbstractServiceProvider
static configureMiddlewares (ContainerInterface $container, \ArrayObject $middlewares, string $path=null)
 
static configureBackendRoutes (ContainerInterface $container, \ArrayObject $routes, string $path=null, string $packageName=null)
 
static configureBackendModules (ContainerInterface $container, \ArrayObject $modules, string $path=null, string $packageName=null)
 
static Map< Scope, configureContentSecurityPolicies(ContainerInterface $container, Map $mutations, string $path=null, string $packageName=null):Map { $path=$path ?? static::getPackagePath();$packageName=$packageName ?? static::getPackageName();$fileName=$path . 'Configuration/ContentSecurityPolicies.php';if(file_exists( $fileName)) { $mutationsInPackage=require $fileName;foreach( $mutationsInPackage as $scope=> $mutation) { if(!isset( $mutations[ $scope])) { $mutations[ $scope]=new Map();} $origin=new MutationOrigin(MutationOriginType::package, $packageName);$mutations[ $scope][ $origin]=$mutation;} } return $mutations;} public static function configureIcons(ContainerInterface $container, \ArrayObject $icons, string $path=null):\ArrayObject { $path=$path ?? static::getPackagePath();$iconsFileNameForPackage=$path . 'Configuration/Icons.php';if(file_exists( $iconsFileNameForPackage)) { $definedIconsInPackage=require $iconsFileNameForPackage;if(is_array( $definedIconsInPackage)) { $icons-> exchangeArray (array_merge($icons->getArrayCopy(), $definedIconsInPackage))
 
static configureSetCollector (ContainerInterface $container, SetCollector $setCollector, string $path=null)
 

Static Protected Member Functions

static getPackagePath ()
 
static getPackageName ()
 
- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Package\AbstractServiceProvider
static mixed new (ContainerInterface $container, string $className, array $constructorArguments=[])
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Core\Package\AbstractServiceProvider
return $icons
 

Detailed Description

Definition at line 50 of file ServiceProvider.php.

Member Function Documentation

◆ addEventListeners()

static TYPO3\CMS\Backend\ServiceProvider::addEventListeners ( ContainerInterface  $container,
ListenerProvider  $listenerProvider 
)
static

◆ configureBackendRouter()

static TYPO3\CMS\Backend\ServiceProvider::configureBackendRouter ( ContainerInterface  $container,
Router  $router = null 
)
static

◆ getApplication()

static TYPO3\CMS\Backend\ServiceProvider::getApplication ( ContainerInterface  $container)
static

Definition at line 88 of file ServiceProvider.php.

Referenced by TYPO3\CMS\Backend\ServiceProvider\getFactories().

◆ getBackendMiddlewares()

static TYPO3\CMS\Backend\ServiceProvider::getBackendMiddlewares ( ContainerInterface  $container)
static
Exceptions
InvalidDataException
CoreException

Definition at line 167 of file ServiceProvider.php.

Referenced by TYPO3\CMS\Backend\ServiceProvider\getFactories().

◆ getBackendModules()

static TYPO3\CMS\Backend\ServiceProvider::getBackendModules ( ContainerInterface  $container)
static

Definition at line 222 of file ServiceProvider.php.

Referenced by TYPO3\CMS\Backend\ServiceProvider\getFactories().

◆ getBackendModulesWarmer()

static TYPO3\CMS\Backend\ServiceProvider::getBackendModulesWarmer ( ContainerInterface  $container)
static

Definition at line 227 of file ServiceProvider.php.

Referenced by TYPO3\CMS\Backend\ServiceProvider\getFactories().

◆ getBackendRoutes()

static TYPO3\CMS\Backend\ServiceProvider::getBackendRoutes ( ContainerInterface  $container)
static

Definition at line 205 of file ServiceProvider.php.

Referenced by TYPO3\CMS\Backend\ServiceProvider\getFactories().

◆ getBackendRoutesWarmer()

static TYPO3\CMS\Backend\ServiceProvider::getBackendRoutesWarmer ( ContainerInterface  $container)
static

Definition at line 210 of file ServiceProvider.php.

Referenced by TYPO3\CMS\Backend\ServiceProvider\getFactories().

◆ getExtensions()

TYPO3\CMS\Backend\ServiceProvider::getExtensions ( )

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

  • ‪the key is the entry name
  • ‪the value is a callable that will return the modified entry

Callables have the following signature: function(Psr\Container\ContainerInterface $container, $previous) or function(Psr\Container\ContainerInterface $container, $previous = null)

About factories parameters:

  • ‪the container (instance of Psr\Container\ContainerInterface)
  • ‪the entry to be extended. If the entry to be extended does not exist and the parameter is nullable, null will be passed.
Returns
‪callable[]

Reimplemented from TYPO3\CMS\Core\Package\AbstractServiceProvider.

Definition at line 80 of file ServiceProvider.php.

References TYPO3\CMS\Backend\ServiceProvider\addEventListeners(), and TYPO3\CMS\Backend\ServiceProvider\configureBackendRouter().

◆ getFactories()

◆ getModuleFactory()

static TYPO3\CMS\Backend\ServiceProvider::getModuleFactory ( ContainerInterface  $container)
static

◆ getModuleProvider()

static TYPO3\CMS\Backend\ServiceProvider::getModuleProvider ( ContainerInterface  $container)
static

◆ getModuleRegistry()

static TYPO3\CMS\Backend\ServiceProvider::getModuleRegistry ( ContainerInterface  $container)
static

◆ getPackageName()

static TYPO3\CMS\Backend\ServiceProvider::getPackageName ( )
staticprotected

Return the composer package name. This is the 'name' attribute in composer.json. Note composer.json existence for 'extensions' is still not mandatory in non-composer mode, the method returns empty string in this case.

Reimplemented from TYPO3\CMS\Core\Package\AbstractServiceProvider.

Definition at line 57 of file ServiceProvider.php.

◆ getPackagePath()

static TYPO3\CMS\Backend\ServiceProvider::getPackagePath ( )
staticprotected

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

Reimplemented from TYPO3\CMS\Core\Package\AbstractServiceProvider.

Definition at line 52 of file ServiceProvider.php.

◆ getRequestHandler()

static TYPO3\CMS\Backend\ServiceProvider::getRequestHandler ( ContainerInterface  $container)
static

Definition at line 101 of file ServiceProvider.php.

Referenced by TYPO3\CMS\Backend\ServiceProvider\getFactories().

◆ getRouteDispatcher()

static TYPO3\CMS\Backend\ServiceProvider::getRouteDispatcher ( ContainerInterface  $container)
static

◆ getUriBuilder()

static TYPO3\CMS\Backend\ServiceProvider::getUriBuilder ( ContainerInterface  $container)
static