You are here

public function SocialPrivateMessageServiceProvider::alter in Open Social 8.6

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

Modifies existing service definitions.

Parameters

ContainerBuilder $container: The ContainerBuilder whose service definitions can be altered.

Overrides ServiceProviderBase::alter

File

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

Class

SocialPrivateMessageServiceProvider
Class SocialPrivateMessageServiceProvider.

Namespace

Drupal\social_private_message

Code

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');
}