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

Public Member Functions

 getFactories ()
 
 getExtensions ()
 

Static Public Member Functions

static getSymfonyEventDispatcher (ContainerInterface $container)
 
static getCacheManager (ContainerInterface $container)
 
static getConnectionPool (ContainerInterface $container)
 
static getCharsetConverter (ContainerInterface $container)
 
static getSiteConfiguration (ContainerInterface $container)
 
static getListCommand (ContainerInterface $container)
 
static getHelpCommand (ContainerInterface $container)
 
static getCacheFlushCommand (ContainerInterface $container)
 
static getCacheWarmupCommand (ContainerInterface $container)
 
static getDumpAutoloadCommand (ContainerInterface $container)
 
static getConsoleCommandApplication (ContainerInterface $container)
 
static getConsoleCommandRegistry (ContainerInterface $container)
 
static getEventDispatcher (ContainerInterface $container)
 
static getEventListenerProvider (ContainerInterface $container)
 
static extendEventListenerProvider (ContainerInterface $container, EventDispatcher\ListenerProvider $listenerProvider)
 
static getContext (ContainerInterface $container)
 
static getBootService (ContainerInterface $container)
 
static getPasswordHashFactory (ContainerInterface $container)
 
static getSchemaMigrator (ContainerInterface $container)
 
static getSchemaParser (ContainerInterface $container)
 
static getIconFactory (ContainerInterface $container)
 
static configureIconRegistry (ContainerInterface $container, IconRegistry $iconRegistry)
 
static getIcons (ContainerInterface $container)
 
static getIconRegistry (ContainerInterface $container)
 
static getLanguageServiceFactory (ContainerInterface $container)
 
static getLanguageStore (ContainerInterface $container)
 
static getLocales (ContainerInterface $container)
 
static getLocalizationFactory (ContainerInterface $container)
 
static getMailTransportFactory (ContainerInterface $container)
 
static getFlashMessageService (ContainerInterface $container)
 
static getResponsePropagationMiddleware (ContainerInterface $container)
 
static getVerifyHostHeaderMiddleware (ContainerInterface $container)
 
static getFailsafePackageManager (ContainerInterface $container)
 
static getPackageDependentCacheIdentifier (ContainerInterface $container)
 
static getRegistry (ContainerInterface $container)
 
static getFileIndexRepository (ContainerInterface $container)
 
static getMetaDataRepository (ContainerInterface $container)
 
static getDriverRegistry (ContainerInterface $container)
 
static getProcessedFileRepository (ContainerInterface $container)
 
static getResourceFactory (ContainerInterface $container)
 
static getStorageRepository (ContainerInterface $container)
 
static getDependencyOrderingService (ContainerInterface $container)
 
static getFlexFormService (ContainerInterface $container)
 
static getOpcodeCacheService (ContainerInterface $container)
 
static getTypoScriptStringFactory (ContainerInterface $container)
 
static getTypoScriptService (ContainerInterface $container)
 
static getAstTraverser (ContainerInterface $container)
 
static getCommentAwareAstBuilder (ContainerInterface $container)
 
static getLosslessTokenizer (ContainerInterface $container)
 
static getBackendEntryPointResolver (ContainerInterface $container)
 
static getRequestContextFactory (ContainerInterface $container)
 
static getFormProtectionFactory (ContainerInterface $container)
 
static getGuzzleClientFactory (ContainerInterface $container)
 
static getRequestFactory (ContainerInterface $container)
 
static getMiddlewareStackResolver (ContainerInterface $container)
 
static getMiddlewares (ContainerInterface $container)
 
static getContentSecurityPolicies (ContainerInterface $container)
 
static provideFallbackEventDispatcher (ContainerInterface $container, EventDispatcherInterface $eventDispatcher=null)
 
static configureCommands (ContainerInterface $container, Console\CommandRegistry $commandRegistry)
 
- ‪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 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 40 of file ServiceProvider.php.

Member Function Documentation

◆ configureCommands()

static TYPO3\CMS\Core\ServiceProvider::configureCommands ( ContainerInterface  $container,
Console\CommandRegistry  $commandRegistry 
)
static

◆ configureIconRegistry()

static TYPO3\CMS\Core\ServiceProvider::configureIconRegistry ( ContainerInterface  $container,
IconRegistry  $iconRegistry 
)
static

◆ extendEventListenerProvider()

static TYPO3\CMS\Core\ServiceProvider::extendEventListenerProvider ( ContainerInterface  $container,
EventDispatcher\ListenerProvider  $listenerProvider 
)
static

Definition at line 242 of file ServiceProvider.php.

◆ getAstTraverser()

static TYPO3\CMS\Core\ServiceProvider::getAstTraverser ( ContainerInterface  $container)
static

◆ getBackendEntryPointResolver()

static TYPO3\CMS\Core\ServiceProvider::getBackendEntryPointResolver ( ContainerInterface  $container)
static

◆ getBootService()

static TYPO3\CMS\Core\ServiceProvider::getBootService ( ContainerInterface  $container)
static

Definition at line 272 of file ServiceProvider.php.

◆ getCacheFlushCommand()

static TYPO3\CMS\Core\ServiceProvider::getCacheFlushCommand ( ContainerInterface  $container)
static

Definition at line 190 of file ServiceProvider.php.

◆ getCacheManager()

static TYPO3\CMS\Core\ServiceProvider::getCacheManager ( ContainerInterface  $container)
static

◆ getCacheWarmupCommand()

static TYPO3\CMS\Core\ServiceProvider::getCacheWarmupCommand ( ContainerInterface  $container)
static

Definition at line 198 of file ServiceProvider.php.

◆ getCharsetConverter()

static TYPO3\CMS\Core\ServiceProvider::getCharsetConverter ( ContainerInterface  $container)
static

◆ getCommentAwareAstBuilder()

static TYPO3\CMS\Core\ServiceProvider::getCommentAwareAstBuilder ( ContainerInterface  $container)
static

◆ getConnectionPool()

static TYPO3\CMS\Core\ServiceProvider::getConnectionPool ( ContainerInterface  $container)
static

◆ getConsoleCommandApplication()

static TYPO3\CMS\Core\ServiceProvider::getConsoleCommandApplication ( ContainerInterface  $container)
static

Definition at line 213 of file ServiceProvider.php.

◆ getConsoleCommandRegistry()

static TYPO3\CMS\Core\ServiceProvider::getConsoleCommandRegistry ( ContainerInterface  $container)
static

Definition at line 225 of file ServiceProvider.php.

◆ getContentSecurityPolicies()

static TYPO3\CMS\Core\ServiceProvider::getContentSecurityPolicies ( ContainerInterface  $container)
static

Definition at line 557 of file ServiceProvider.php.

◆ getContext()

static TYPO3\CMS\Core\ServiceProvider::getContext ( ContainerInterface  $container)
static

Definition at line 267 of file ServiceProvider.php.

◆ getDependencyOrderingService()

static TYPO3\CMS\Core\ServiceProvider::getDependencyOrderingService ( ContainerInterface  $container)
static

Definition at line 462 of file ServiceProvider.php.

◆ getDriverRegistry()

static TYPO3\CMS\Core\ServiceProvider::getDriverRegistry ( ContainerInterface  $container)
static

◆ getDumpAutoloadCommand()

static TYPO3\CMS\Core\ServiceProvider::getDumpAutoloadCommand ( ContainerInterface  $container)
static

Definition at line 208 of file ServiceProvider.php.

◆ getEventDispatcher()

static TYPO3\CMS\Core\ServiceProvider::getEventDispatcher ( ContainerInterface  $container)
static

Definition at line 230 of file ServiceProvider.php.

◆ getEventListenerProvider()

static TYPO3\CMS\Core\ServiceProvider::getEventListenerProvider ( ContainerInterface  $container)
static

Definition at line 237 of file ServiceProvider.php.

◆ getExtensions()

TYPO3\CMS\Core\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 113 of file ServiceProvider.php.

◆ getFactories()

TYPO3\CMS\Core\ServiceProvider::getFactories ( )

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

  • ‪the key is the entry name
  • ‪the value is a callable that will return the entry, aka the factory

Factories have the following signature: function(\Psr\Container\ContainerInterface $container)

Returns
‪callable[]

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

Definition at line 52 of file ServiceProvider.php.

◆ getFailsafePackageManager()

static TYPO3\CMS\Core\ServiceProvider::getFailsafePackageManager ( ContainerInterface  $container)
static

Definition at line 401 of file ServiceProvider.php.

◆ getFileIndexRepository()

static TYPO3\CMS\Core\ServiceProvider::getFileIndexRepository ( ContainerInterface  $container)
static

◆ getFlashMessageService()

static TYPO3\CMS\Core\ServiceProvider::getFlashMessageService ( ContainerInterface  $container)
static

◆ getFlexFormService()

static TYPO3\CMS\Core\ServiceProvider::getFlexFormService ( ContainerInterface  $container)
static

◆ getFormProtectionFactory()

static TYPO3\CMS\Core\ServiceProvider::getFormProtectionFactory ( ContainerInterface  $container)
static

◆ getGuzzleClientFactory()

static TYPO3\CMS\Core\ServiceProvider::getGuzzleClientFactory ( ContainerInterface  $container)
static

Definition at line 530 of file ServiceProvider.php.

◆ getHelpCommand()

static TYPO3\CMS\Core\ServiceProvider::getHelpCommand ( ContainerInterface  $container)
static

Definition at line 185 of file ServiceProvider.php.

◆ getIconFactory()

static TYPO3\CMS\Core\ServiceProvider::getIconFactory ( ContainerInterface  $container)
static

◆ getIconRegistry()

static TYPO3\CMS\Core\ServiceProvider::getIconRegistry ( ContainerInterface  $container)
static

◆ getIcons()

static TYPO3\CMS\Core\ServiceProvider::getIcons ( ContainerInterface  $container)
static

Definition at line 339 of file ServiceProvider.php.

◆ getLanguageServiceFactory()

static TYPO3\CMS\Core\ServiceProvider::getLanguageServiceFactory ( ContainerInterface  $container)
static

◆ getLanguageStore()

static TYPO3\CMS\Core\ServiceProvider::getLanguageStore ( ContainerInterface  $container)
static

◆ getListCommand()

static TYPO3\CMS\Core\ServiceProvider::getListCommand ( ContainerInterface  $container)
static

Definition at line 177 of file ServiceProvider.php.

◆ getLocales()

static TYPO3\CMS\Core\ServiceProvider::getLocales ( ContainerInterface  $container)
static

◆ getLocalizationFactory()

static TYPO3\CMS\Core\ServiceProvider::getLocalizationFactory ( ContainerInterface  $container)
static

◆ getLosslessTokenizer()

static TYPO3\CMS\Core\ServiceProvider::getLosslessTokenizer ( ContainerInterface  $container)
static

◆ getMailTransportFactory()

static TYPO3\CMS\Core\ServiceProvider::getMailTransportFactory ( ContainerInterface  $container)
static

◆ getMetaDataRepository()

static TYPO3\CMS\Core\ServiceProvider::getMetaDataRepository ( ContainerInterface  $container)
static

◆ getMiddlewares()

static TYPO3\CMS\Core\ServiceProvider::getMiddlewares ( ContainerInterface  $container)
static

Definition at line 552 of file ServiceProvider.php.

◆ getMiddlewareStackResolver()

static TYPO3\CMS\Core\ServiceProvider::getMiddlewareStackResolver ( ContainerInterface  $container)
static

Definition at line 542 of file ServiceProvider.php.

◆ getOpcodeCacheService()

static TYPO3\CMS\Core\ServiceProvider::getOpcodeCacheService ( ContainerInterface  $container)
static

◆ getPackageDependentCacheIdentifier()

static TYPO3\CMS\Core\ServiceProvider::getPackageDependentCacheIdentifier ( ContainerInterface  $container)
static

Definition at line 410 of file ServiceProvider.php.

◆ getPackageName()

static TYPO3\CMS\Core\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 47 of file ServiceProvider.php.

◆ getPackagePath()

static TYPO3\CMS\Core\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 42 of file ServiceProvider.php.

◆ getPasswordHashFactory()

static TYPO3\CMS\Core\ServiceProvider::getPasswordHashFactory ( ContainerInterface  $container)
static

Definition at line 283 of file ServiceProvider.php.

◆ getProcessedFileRepository()

static TYPO3\CMS\Core\ServiceProvider::getProcessedFileRepository ( ContainerInterface  $container)
static

◆ getRegistry()

static TYPO3\CMS\Core\ServiceProvider::getRegistry ( ContainerInterface  $container)
static

◆ getRequestContextFactory()

static TYPO3\CMS\Core\ServiceProvider::getRequestContextFactory ( ContainerInterface  $container)
static

◆ getRequestFactory()

static TYPO3\CMS\Core\ServiceProvider::getRequestFactory ( ContainerInterface  $container)
static

Definition at line 535 of file ServiceProvider.php.

◆ getResourceFactory()

static TYPO3\CMS\Core\ServiceProvider::getResourceFactory ( ContainerInterface  $container)
static

◆ getResponsePropagationMiddleware()

static TYPO3\CMS\Core\ServiceProvider::getResponsePropagationMiddleware ( ContainerInterface  $container)
static

◆ getSchemaMigrator()

static TYPO3\CMS\Core\ServiceProvider::getSchemaMigrator ( ContainerInterface  $container)
static

◆ getSchemaParser()

static TYPO3\CMS\Core\ServiceProvider::getSchemaParser ( ContainerInterface  $container)
static

◆ getSiteConfiguration()

static TYPO3\CMS\Core\ServiceProvider::getSiteConfiguration ( ContainerInterface  $container)
static

◆ getStorageRepository()

static TYPO3\CMS\Core\ServiceProvider::getStorageRepository ( ContainerInterface  $container)
static

◆ getSymfonyEventDispatcher()

static TYPO3\CMS\Core\ServiceProvider::getSymfonyEventDispatcher ( ContainerInterface  $container)
static

◆ getTypoScriptService()

static TYPO3\CMS\Core\ServiceProvider::getTypoScriptService ( ContainerInterface  $container)
static

◆ getTypoScriptStringFactory()

static TYPO3\CMS\Core\ServiceProvider::getTypoScriptStringFactory ( ContainerInterface  $container)
static

Definition at line 477 of file ServiceProvider.php.

◆ getVerifyHostHeaderMiddleware()

static TYPO3\CMS\Core\ServiceProvider::getVerifyHostHeaderMiddleware ( ContainerInterface  $container)
static

◆ provideFallbackEventDispatcher()

static TYPO3\CMS\Core\ServiceProvider::provideFallbackEventDispatcher ( ContainerInterface  $container,
EventDispatcherInterface  $eventDispatcher = null 
)
static

Definition at line 562 of file ServiceProvider.php.