ServiceProviderBase.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php
  2. 10 core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php
  3. 11.x core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php

Namespace

Drupal\Core\DependencyInjection

File

core/lib/Drupal/Core/DependencyInjection/ServiceProviderBase.php

View source
<?php

namespace Drupal\Core\DependencyInjection;


/**
 * Base service provider implementation.
 *
 * @ingroup container
 */
abstract class ServiceProviderBase implements ServiceProviderInterface, ServiceModifierInterface {
    
    /**
     * {@inheritdoc}
     */
    public function register(ContainerBuilder $container) {
    }
    
    /**
     * {@inheritdoc}
     */
    public function alter(ContainerBuilder $container) {
    }

}

Classes

Title Deprecated Summary
ServiceProviderBase Base service provider implementation.

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