You are here

class SocialPrivateMessageServiceProvider in Open Social 8.3

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider
  2. 8.2 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider
  3. 8.4 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider
  4. 8.5 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider
  5. 8.6 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider
  6. 8.7 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider
  7. 8.8 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider
  8. 10.3.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider
  9. 10.0.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider
  10. 10.1.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider
  11. 10.2.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider

Class SocialPrivateMessageServiceProvider.

@package Drupal\social_private_message

Hierarchy

Expanded class hierarchy of SocialPrivateMessageServiceProvider

File

modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php, line 13

Namespace

Drupal\social_private_message
View source
class SocialPrivateMessageServiceProvider extends ServiceProviderBase {

  /**
   * {@inheritdoc}
   */
  public function alter(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('private_message.mailer');
    $definition
      ->setClass('Drupal\\social_private_message\\Service\\PrivateMessageMailer');
    $definition = $container
      ->getDefinition('private_message.mapper');
    $definition
      ->setClass('Drupal\\social_private_message\\Mapper\\PrivateMessageMapper');
  }

}

Members

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