You are here

public function ServiceProviderInterface::alterContainerDefinition in Service Container 7

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

Allows to alter the container definition.

Parameters

array $container_definition: An associative array with the following keys:

  • parameters: Simple key-value store of container parameters.
  • services: Services like defined in services.yml
  • tags: Associative array keyed by tag names with array('service_name' => $tag_args) as values.

See also

ServiceProviderInterface::getContainerDefinition()

4 methods override ServiceProviderInterface::alterContainerDefinition()
ServiceContainerServiceProvider::alterContainerDefinition in src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php
Allows to alter the container definition.
ServiceContainerServiceProvider::alterContainerDefinition in tests/modules/service_container_test_ctools/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php
Allows to alter the container definition.
ServiceContainerServiceProvider::alterContainerDefinition in tests/modules/service_container_test/src/ServiceContainer/ServiceProvider/ServiceContainerServiceProvider.php
Allows to alter the container definition.
ServiceContainerSymfonyServiceProvider::alterContainerDefinition in modules/providers/service_container_symfony/src/ServiceContainer/ServiceProvider/ServiceContainerSymfonyServiceProvider.php
Allows to alter the container definition.

File

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

Class

ServiceProviderInterface
Defines render cache service provider objects.

Namespace

Drupal\service_container\DependencyInjection

Code

public function alterContainerDefinition(&$container_definition);