SocialPrivateMessageServiceProvider.php in Open Social 8.5
Same filename and directory in other branches
- 8.9 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
- 8.2 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
- 8.3 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
- 8.4 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
- 8.6 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
- 8.7 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
- 8.8 modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
- 10.3.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
- 10.0.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
- 10.1.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
- 10.2.x modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.php
Namespace
Drupal\social_private_messageFile
modules/social_features/social_private_message/src/SocialPrivateMessageServiceProvider.phpView source
<?php
namespace Drupal\social_private_message;
use Drupal\Core\DependencyInjection\ServiceProviderBase;
use Drupal\Core\DependencyInjection\ContainerBuilder;
/**
* Class SocialPrivateMessageServiceProvider.
*
* @package Drupal\social_private_message
*/
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');
}
}
Classes
Name | Description |
---|---|
SocialPrivateMessageServiceProvider | Class SocialPrivateMessageServiceProvider. |