You are here

public function DatexServiceProvider::alter in Datex 8

Modifies existing service definitions.

Parameters

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

Overrides ServiceProviderBase::alter

File

src/DatexServiceProvider.php, line 13

Class

DatexServiceProvider
Automatically picked up by DI.

Namespace

Drupal\datex

Code

public function alter(ContainerBuilder $container) {
  $formatter = $container
    ->getDefinition('date.formatter');
  $formatter
    ->setClass(DatexFormatter::class);
}