| @@ 91-107 (lines=17) @@ | ||
| 88 | * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter |
|
| 89 | * The core date_formatter service. |
|
| 90 | */ |
|
| 91 | public function __construct( |
|
| 92 | LoggerInterface $logger, |
|
| 93 | Logger $watchdog, |
|
| 94 | ImmutableConfig $config, |
|
| 95 | ModuleHandlerInterface $module_handler, |
|
| 96 | FormBuilderInterface $form_builder, |
|
| 97 | DateFormatterInterface $date_formatter) { |
|
| 98 | parent::__construct($logger, $watchdog, $config); |
|
| 99 | ||
| 100 | $this->dateFormatter = $date_formatter; |
|
| 101 | $this->formBuilder = $form_builder; |
|
| 102 | $this->moduleHandler = $module_handler; |
|
| 103 | ||
| 104 | // Add terminal "/". |
|
| 105 | $this->rootLength = Unicode::strlen(DRUPAL_ROOT); |
|
| 106 | ||
| 107 | } |
|
| 108 | ||
| 109 | /** |
|
| 110 | * Controller. |
|
| @@ 66-81 (lines=16) @@ | ||
| 63 | * @param \Drupal\Core\Logger\RfcLogLevel $rfcLogLevel |
|
| 64 | * A RfcLogLevel instance, to avoid static access. |
|
| 65 | */ |
|
| 66 | public function __construct( |
|
| 67 | LoggerInterface $logger, |
|
| 68 | Logger $watchdog, |
|
| 69 | ImmutableConfig $config, |
|
| 70 | DateFormatterInterface $dateFormatter, |
|
| 71 | Unicode $unicode, |
|
| 72 | RfcLogLevel $rfcLogLevel) { |
|
| 73 | parent::__construct($logger, $watchdog, $config); |
|
| 74 | ||
| 75 | $this->dateFormatter = $dateFormatter; |
|
| 76 | $this->rfcLogLevel = $rfcLogLevel; |
|
| 77 | $this->unicode = $unicode; |
|
| 78 | ||
| 79 | // Add terminal "/". |
|
| 80 | $this->rootLength = $this->unicode->strlen(DRUPAL_ROOT) + 1; |
|
| 81 | } |
|
| 82 | ||
| 83 | /** |
|
| 84 | * Controller. |
|