You are here

class DatexServiceProvider in Datex 8

Automatically picked up by DI.

Hierarchy

Expanded class hierarchy of DatexServiceProvider

File

src/DatexServiceProvider.php, line 11

Namespace

Drupal\datex
View source
class DatexServiceProvider extends ServiceProviderBase {
  public function alter(ContainerBuilder $container) {
    $formatter = $container
      ->getDefinition('date.formatter');
    $formatter
      ->setClass(DatexFormatter::class);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DatexServiceProvider::alter public function Modifies existing service definitions. Overrides ServiceProviderBase::alter
ServiceProviderBase::register public function Registers services to the container. Overrides ServiceProviderInterface::register 1