Verified Commit e3e9d18f authored by Jess's avatar Jess
Browse files

Issue #3325184 by Spokje, andypost, xjm, smustgrave: $this->configFactory is...

Issue #3325184 by Spokje, andypost, xjm, smustgrave: $this->configFactory is not set properly in the constructor of \Drupal\system\Form\CronForm

(cherry picked from commit 2a461dcd)
parent f2654188
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -65,6 +65,7 @@ class CronForm extends FormBase {
   *   The module handler service.
   */
  public function __construct(ConfigFactoryInterface $config_factory, StateInterface $state, CronInterface $cron, DateFormatterInterface $date_formatter, ModuleHandlerInterface $module_handler) {
    $this->configFactory = $config_factory;
    $this->state = $state;
    $this->cron = $cron;
    $this->dateFormatter = $date_formatter;
+0 −5
Original line number Diff line number Diff line
@@ -2065,11 +2065,6 @@ parameters:
			count: 1
			path: modules/system/src/DateFormatListBuilder.php

		-
			message: "#^Constructor of class Drupal\\\\system\\\\Form\\\\CronForm has an unused parameter \\$config_factory\\.$#"
			count: 1
			path: modules/system/src/Form/CronForm.php

		-
			message: "#^Call to deprecated constant REQUEST_TIME\\: Deprecated in drupal\\:8\\.3\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\:\\:time\\(\\)\\-\\>getRequestTime\\(\\); $#"
			count: 1