class ServiceProviderBase

Same name in other branches
  1. 9 core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php \Drupal\Core\DependencyInjection\ServiceProviderBase
  2. 8.9.x core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php \Drupal\Core\DependencyInjection\ServiceProviderBase
  3. 10 core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php \Drupal\Core\DependencyInjection\ServiceProviderBase

Base service provider implementation.

Hierarchy

Expanded class hierarchy of ServiceProviderBase

Related topics

7 files declare their use of ServiceProviderBase
InlineFormErrorsServiceProvider.php in core/modules/inline_form_errors/src/InlineFormErrorsServiceProvider.php
LanguageServiceProvider.php in core/modules/language/src/LanguageServiceProvider.php
MediaTestOembedServiceProvider.php in core/modules/media/tests/modules/media_test_oembed/src/MediaTestOembedServiceProvider.php
MigrateDrupalServiceProvider.php in core/modules/migrate_drupal/src/MigrateDrupalServiceProvider.php
PackageManagerBypassServiceProvider.php in core/modules/package_manager/tests/modules/package_manager_bypass/src/PackageManagerBypassServiceProvider.php

... See full list

File

core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php, line 10

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

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
ServiceProviderBase::alter public function Modifies existing service definitions. Overrides ServiceModifierInterface::alter 7
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.