class PersianDatePass in Persian Date for Drupal 8 8
Same name and namespace in other branches
- 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
File
- src/
DependencyInjection/ Pass/ PersianDatePass.php, line 16
Namespace
Drupal\persian_date\DependencyInjection\PassView source
class PersianDatePass implements CompilerPassInterface {
public function process(ContainerBuilder $container) {
$definition = $container
->getDefinition('date.formatter');
$definition
->setClass(PersianDateFormatter::class);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
PersianDatePass:: |
public | function |