public function PersianDateServiceProvider::register in Persian Date for Drupal 8 8.4
Same name and namespace in other branches
- 8 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
Namespace
Drupal\persian_dateCode
public function register(ContainerBuilder $container) {
$container
->addCompilerPass(new PersianDatePass());
}