‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProvider Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProvider:
TYPO3\CMS\Core\DependencyInjection\ServiceProviderInterface

Public Member Functions

 getFactories ()
 
 getExtensions ()
 

Static Public Member Functions

static createServiceB (ContainerInterface $container)
 
static createServiceE (ContainerInterface $container)
 

Detailed Description

Definition at line 34 of file TestServiceProvider.php.

Member Function Documentation

◆ createServiceB()

static TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProvider::createServiceB ( ContainerInterface  $container)
static

Definition at line 60 of file TestServiceProvider.php.

◆ createServiceE()

static TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProvider::createServiceE ( ContainerInterface  $container)
static

◆ getExtensions()

TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProvider::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[]

Implements TYPO3\CMS\Core\DependencyInjection\ServiceProviderInterface.

Definition at line 74 of file TestServiceProvider.php.

◆ getFactories()

TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProvider::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[]

Implements TYPO3\CMS\Core\DependencyInjection\ServiceProviderInterface.

Definition at line 36 of file TestServiceProvider.php.

References TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\TestServiceProvider\createServiceE().