class SocialDemoServiceProvider in Open Social 8.9
Same name and namespace in other branches
- 8.8 modules/custom/social_demo/src/SocialDemoServiceProvider.php \Drupal\social_demo\SocialDemoServiceProvider
- 10.3.x modules/custom/social_demo/src/SocialDemoServiceProvider.php \Drupal\social_demo\SocialDemoServiceProvider
- 10.0.x modules/custom/social_demo/src/SocialDemoServiceProvider.php \Drupal\social_demo\SocialDemoServiceProvider
- 10.1.x modules/custom/social_demo/src/SocialDemoServiceProvider.php \Drupal\social_demo\SocialDemoServiceProvider
- 10.2.x modules/custom/social_demo/src/SocialDemoServiceProvider.php \Drupal\social_demo\SocialDemoServiceProvider
Class SocialCoreServiceProvider.
@package Drupal\social_core
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\social_demo\SocialDemoServiceProvider
Expanded class hierarchy of SocialDemoServiceProvider
File
- modules/
custom/ social_demo/ src/ SocialDemoServiceProvider.php, line 13
Namespace
Drupal\social_demoView source
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');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |
SocialDemoServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |