summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2013-07-06 15:07:46 (GMT)
committerNathaniel Catchpole2013-07-06 15:07:46 (GMT)
commit6c47d161d52fb15eee3b1526b427688a477705e4 (patch)
treee0ba6f33987c102975418715da85002cb5c164b8
parente855a496a7e725e5e1e62f1a32a4d245f1a17c18 (diff)
Issue #2032253 by elachlan: Fixed CronForm accesses State incorrectly.
-rw-r--r--core/modules/system/lib/Drupal/system/Form/CronForm.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/modules/system/lib/Drupal/system/Form/CronForm.php b/core/modules/system/lib/Drupal/system/Form/CronForm.php
index c9b91b2..dd83495 100644
--- a/core/modules/system/lib/Drupal/system/Form/CronForm.php
+++ b/core/modules/system/lib/Drupal/system/Form/CronForm.php
@@ -9,7 +9,7 @@ namespace Drupal\system\Form;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Config\Context\ContextInterface;
-use Drupal\Core\KeyValueStore\KeyValueFactory;
+use Drupal\Core\KeyValueStore\KeyValueStoreInterface;
use Drupal\system\SystemConfigFormBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
@@ -36,9 +36,9 @@ class CronForm extends SystemConfigFormBase {
* @param \Drupal\Core\KeyValueStore\KeyValueStoreInterface $state
* The state key value store.
*/
- public function __construct(ConfigFactory $config_factory, ContextInterface $context, KeyValueFactory $key_value_factory) {
+ public function __construct(ConfigFactory $config_factory, ContextInterface $context, KeyValueStoreInterface $state) {
parent::__construct($config_factory, $context);
- $this->state = $key_value_factory->get('state');
+ $this->state = $state;
}
/**
@@ -48,7 +48,7 @@ class CronForm extends SystemConfigFormBase {
return new static(
$container->get('config.factory'),
$container->get('config.context.free'),
- $container->get('keyvalue')
+ $container->get('state')
);
}