You are here

public function ServiceProviderInterface::getContainerDefinition in Service Container 7

Same name and namespace in other branches
  1. 7.2 src/DependencyInjection/ServiceProviderInterface.php \Drupal\service_container\DependencyInjection\ServiceProviderInterface::getContainerDefinition()

Gets a service container definition.

Return value

array Returns an associative array with the following keys:

  • parameters: Simple key-value store of container parameters
  • services: Services like defined in services.yml

factory methods, arguments and tags are supported for services.

@see core.services.yml in Drupal 8

4 methods override ServiceProviderInterface::getContainerDefinition()
ServiceContainerServiceProvider::getContainerDefinition in src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php
Gets a service container definition.
ServiceContainerServiceProvider::getContainerDefinition in tests/modules/service_container_test_ctools/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php
Gets a service container definition.
ServiceContainerServiceProvider::getContainerDefinition in tests/modules/service_container_test/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php
Gets a service container definition.
ServiceContainerSymfonyServiceProvider::getContainerDefinition in modules/providers/service_container_symfony/src/ServiceContainer/ServiceProvider/ServiceContainerSymfonyServiceProvider.php
Gets a service container definition.

File

src/DependencyInjection/ServiceProviderInterface.php, line 27
Contains \Drupal\service_container\DependencyInjection\ServiceProviderInterface

Class

ServiceProviderInterface
Defines render cache service provider objects.

Namespace

Drupal\service_container\DependencyInjection

Code

public function getContainerDefinition();