PersianDatePass.php in Persian Date for Drupal 8 8
Same filename and directory in other branches
File
src/DependencyInjection/Pass/PersianDatePass.phpView 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
Name | Description |
---|---|
PersianDatePass |