public function SocialPrivateMessageServiceProvider::alter in Open Social 8.6
Same name and namespace in other branches
- 8.9 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider::alter()
- 8.2 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider::alter()
- 8.3 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider::alter()
- 8.4 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider::alter()
- 8.5 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider::alter()
- 8.7 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider::alter()
- 8.8 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider::alter()
- 10.3.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider::alter()
- 10.0.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider::alter()
- 10.1.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php \Drupal\social_private_message\SocialPrivateMessageServiceProvider::alter()
- 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_messageCode
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');
}