You are here

public function PersianDatePass::process in Persian Date for Drupal 8 8.4

Same name and namespace in other branches
  1. 8 src/DependencyInjection/Pass/PersianDatePass.php \Drupal\persian_date\DependencyInjection\Pass\PersianDatePass::process()

File

src/DependencyInjection/Pass/PersianDatePass.php, line 18

Class

PersianDatePass

Namespace

Drupal\persian_date\DependencyInjection\Pass

Code

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