You are here

class SocialDemoServiceProvider in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/custom/social_demo/src/SocialDemoServiceProvider.php \Drupal\social_demo\SocialDemoServiceProvider
  2. 10.3.x modules/custom/social_demo/src/SocialDemoServiceProvider.php \Drupal\social_demo\SocialDemoServiceProvider
  3. 10.0.x modules/custom/social_demo/src/SocialDemoServiceProvider.php \Drupal\social_demo\SocialDemoServiceProvider
  4. 10.1.x modules/custom/social_demo/src/SocialDemoServiceProvider.php \Drupal\social_demo\SocialDemoServiceProvider
  5. 10.2.x modules/custom/social_demo/src/SocialDemoServiceProvider.php \Drupal\social_demo\SocialDemoServiceProvider

Class SocialCoreServiceProvider.

@package Drupal\social_core

Hierarchy

Expanded class hierarchy of SocialDemoServiceProvider

File

modules/custom/social_demo/src/SocialDemoServiceProvider.php, line 13

Namespace

Drupal\social_demo
View source
class SocialDemoServiceProvider extends ServiceProviderBase {

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

    // Overrides language_manager class to test domain language negotiation.
    $definition = $container
      ->getDefinition('messenger');
    $definition
      ->setClass('Drupal\\social_demo\\Messenger');
  }

}

Members

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