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

Public Member Functions

 getFactories ()
 
 getExtensions ()
 

Detailed Description

Definition at line 22 of file NullServiceProvider.php.

Member Function Documentation

◆ getExtensions()

TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\NullServiceProvider::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 29 of file NullServiceProvider.php.

◆ getFactories()

TYPO3\CMS\Core\Tests\Unit\DependencyInjection\Fixtures\NullServiceProvider::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 24 of file NullServiceProvider.php.