class DatexServiceProvider in Datex 8
Automatically picked up by DI.
Hierarchy
- class \Drupal\Core\DependencyInjection\ServiceProviderBase implements ServiceModifierInterface, ServiceProviderInterface
- class \Drupal\datex\DatexServiceProvider
Expanded class hierarchy of DatexServiceProvider
File
- src/
DatexServiceProvider.php, line 11
Namespace
Drupal\datexView source
class DatexServiceProvider extends ServiceProviderBase {
public function alter(ContainerBuilder $container) {
$formatter = $container
->getDefinition('date.formatter');
$formatter
->setClass(DatexFormatter::class);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DatexServiceProvider:: |
public | function |
Modifies existing service definitions. Overrides ServiceProviderBase:: |
|
ServiceProviderBase:: |
public | function |
Registers services to the container. Overrides ServiceProviderInterface:: |
1 |