You are here

SocialDemoServiceProvider.php in Open Social 8.8

Namespace

Drupal\social_demo

File

modules/custom/social_demo/src/SocialDemoServiceProvider.php
View source
<?php

namespace Drupal\social_demo;

use Drupal\Core\DependencyInjection\ServiceProviderBase;
use Drupal\Core\DependencyInjection\ContainerBuilder;

/**
 * Class SocialCoreServiceProvider.
 *
 * @package Drupal\social_core
 */
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');
  }

}

Classes

Namesort descending Description
SocialDemoServiceProvider Class SocialCoreServiceProvider.