You are here

PersianDatePass.php in Persian Date for Drupal 8 8

Same filename and directory in other branches
  1. 8.4 src/DependencyInjection/Pass/PersianDatePass.php

File

src/DependencyInjection/Pass/PersianDatePass.php
View source
<?php

/**
 * Created by PhpStorm.
 * User: evolve
 * Date: 9/13/17
 * Time: 2:13 AM
 */
namespace Drupal\persian_date\DependencyInjection\Pass;

use Drupal\persian_date\Service\Formatter\PersianDateFormatter;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
class PersianDatePass implements CompilerPassInterface {
  public function process(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('date.formatter');
    $definition
      ->setClass(PersianDateFormatter::class);
  }

}

Classes

Namesort descending Description
PersianDatePass