You are here

abstract class ServiceProviderBase in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php \Drupal\Core\DependencyInjection\ServiceProviderBase

Base service provider implementation.

Hierarchy

Expanded class hierarchy of ServiceProviderBase

Related topics

2 files declare their use of ServiceProviderBase
InlineFormErrorsServiceProvider.php in core/modules/inline_form_errors/src/InlineFormErrorsServiceProvider.php
Contains \Drupal\inline_form_errors\InlineFormErrorsServiceProvider.
LanguageServiceProvider.php in core/modules/language/src/LanguageServiceProvider.php
Contains \Drupal\language\LanguageServiceProvider.

File

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

Namespace

Drupal\Core\DependencyInjection
View source
abstract class ServiceProviderBase implements ServiceProviderInterface, ServiceModifierInterface {

  /**
   * {@inheritdoc}
   */
  public function register(ContainerBuilder $container) {
  }

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ServiceProviderBase::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter 2
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1