You are here

public function JalaliDatePass::process in PersianTools 8

* Replaces the date service by a persian date. * *

Parameters

\Symfony\Component\DependencyInjection\ContainerBuilder $container: * The container to process.

File

jalalidate/src/JalaliDatePass.php, line 18

Class

JalaliDatePass
Replaces the date service by a persian date.

Namespace

Drupal\jalalidate

Code

public function process(ContainerBuilder $container) {
  $definition = $container
    ->getDefinition('date');
  $definition
    ->setClass('Drupal\\jalalidate\\JalaliDateFormatter');
}