You are here

class PersianDatePass in Persian Date for Drupal 8 8

Same name and namespace in other branches
  1. 8.4 src/DependencyInjection/Pass/PersianDatePass.php \Drupal\persian_date\DependencyInjection\Pass\PersianDatePass

Hierarchy

  • class \Drupal\persian_date\DependencyInjection\Pass\PersianDatePass implements \Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface

Expanded class hierarchy of PersianDatePass

1 file declares its use of PersianDatePass
PersianDateServiceProvider.php in src/PersianDateServiceProvider.php

File

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

Namespace

Drupal\persian_date\DependencyInjection\Pass
View source
class PersianDatePass implements CompilerPassInterface {
  public function process(ContainerBuilder $container) {
    $definition = $container
      ->getDefinition('date.formatter');
    $definition
      ->setClass(PersianDateFormatter::class);
  }

}

Members