You are here

PersianDateServiceProvider.php in Persian Date for Drupal 8 8

Same filename and directory in other branches
  1. 8.4 src/PersianDateServiceProvider.php

File

src/PersianDateServiceProvider.php
View source
<?php

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

use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\DependencyInjection\ServiceProviderInterface;
use Drupal\persian_date\DependencyInjection\Pass\PersianDatePass;
class PersianDateServiceProvider implements ServiceProviderInterface {
  public function register(ContainerBuilder $container) {
    $container
      ->addCompilerPass(new PersianDatePass());
  }

}

Classes