You are here

interface ServiceModifierInterface in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php \Drupal\Core\DependencyInjection\ServiceModifierInterface

Interface that service providers can implement to modify services.

Hierarchy

Expanded class hierarchy of ServiceModifierInterface

All classes that implement ServiceModifierInterface

1 file declares its use of ServiceModifierInterface
ModifyServiceDefinitionsPass.php in lib/Drupal/Core/DependencyInjection/Compiler/ModifyServiceDefinitionsPass.php
Contains \Drupal\Core\DependencyInjection\Compiler\ModifyServiceDefinitionsPass.

File

lib/Drupal/Core/DependencyInjection/ServiceModifierInterface.php, line 15
Contains \Drupal\Core\DependencyInjection\ServiceModifierInterface.

Namespace

Drupal\Core\DependencyInjection
View source
interface ServiceModifierInterface {

  /**
   * Modifies existing service definitions.
   *
   * @param ContainerBuilder $container
   *   The ContainerBuilder whose service definitions can be altered.
   */
  public function alter(ContainerBuilder $container);

}

Members

Namesort descending Modifiers Type Description Overrides
ServiceModifierInterface::alter public function Modifies existing service definitions. 1