You are here

public function PersianDateServiceProvider::register in Persian Date for Drupal 8 8

Same name and namespace in other branches
  1. 8.4 src/PersianDateServiceProvider.php \Drupal\persian_date\PersianDateServiceProvider::register()

Registers services to the container.

Parameters

ContainerBuilder $container: The ContainerBuilder to register services to.

Overrides ServiceProviderInterface::register

File

src/PersianDateServiceProvider.php, line 17

Class

PersianDateServiceProvider

Namespace

Drupal\persian_date

Code

public function register(ContainerBuilder $container) {
  $container
    ->addCompilerPass(new PersianDatePass());
}