‪TYPO3CMS  ‪main
TYPO3\CMS\Core\DependencyInjection\ServiceProviderInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Core\DependencyInjection\ServiceProviderInterface:
TYPO3\CMS\Core\Package\AbstractServiceProvider TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\CommandRegistryPackage\CommandRegistryServiceProvider TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\NullServiceProvider TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestRegistryServiceProvider TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProvider TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProviderFactoryOverride TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProviderOverride TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProviderOverride2 TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestStatefulServiceProvider

Public Member Functions

callable[] getFactories ()
 
callable[] getExtensions ()
 

Detailed Description

A service provider provides entries to a container. Inspired by: https://github.com/container-interop/service-provider/blob/v0.4.0/src/ServiceProviderInterface.php

Definition at line 25 of file ServiceProviderInterface.php.

Member Function Documentation

◆ getExtensions()

callable [] TYPO3\CMS\Core\DependencyInjection\ServiceProviderInterface::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[]

Implemented in TYPO3\CMS\Core\ServiceProvider, TYPO3\CMS\Install\ServiceProvider, TYPO3\CMS\Backend\ServiceProvider, TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProvider, TYPO3\CMS\Dashboard\ServiceProvider, TYPO3\CMS\Frontend\ServiceProvider, TYPO3\CMS\Core\Package\AbstractServiceProvider, TYPO3\CMS\Core\Package\PseudoServiceProvider, TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProviderFactoryOverride, TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProviderOverride2, TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestStatefulServiceProvider, TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestRegistryServiceProvider, TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProviderOverride, TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\CommandRegistryPackage\CommandRegistryServiceProvider, and TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\NullServiceProvider.

◆ getFactories()

callable [] TYPO3\CMS\Core\DependencyInjection\ServiceProviderInterface::getFactories ( )