Commit 1e15efd7 authored by alexpott's avatar alexpott

Issue #2202629 by sun: Move Drupal\Core\KeyValueStore\State* into Drupal\Core\State\State*.

parent 3a7d54dc
......@@ -141,7 +141,7 @@ services:
factory_class: Drupal\Component\Utility\Settings
factory_method: getInstance
state:
class: Drupal\Core\KeyValueStore\State
class: Drupal\Core\State\State
arguments: ['@keyvalue']
queue:
class: Drupal\Core\Queue\QueueFactory
......
......@@ -336,7 +336,7 @@ public static function keyValue($collection) {
* needs to be the same across development, production, etc. environments
* (for example, the system maintenance message) should use \Drupal::config() instead.
*
* @return \Drupal\Core\KeyValueStore\StateInterface
* @return \Drupal\Core\State\StateInterface
*/
public static function state() {
return static::$container->get('state');
......
......@@ -6,7 +6,7 @@
namespace Drupal\Core\Asset;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
/**
* Optimizes CSS assets.
......@@ -37,7 +37,7 @@ class CssCollectionOptimizer implements AssetCollectionOptimizerInterface {
/**
* The state key/value store.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -50,7 +50,7 @@ class CssCollectionOptimizer implements AssetCollectionOptimizerInterface {
* The optimizer for a single CSS asset.
* @param \Drupal\Core\Asset\AssetDumperInterface
* The dumper for optimized CSS assets.
* @param \Drupal\Core\KeyValueStore\StateInterface
* @param \Drupal\Core\State\StateInterface
* The state key/value store.
*/
public function __construct(AssetCollectionGrouperInterface $grouper, AssetOptimizerInterface $optimizer, AssetDumperInterface $dumper, StateInterface $state) {
......
......@@ -7,7 +7,7 @@
namespace Drupal\Core\Asset;
use Drupal\Component\Utility\String;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
/**
* Renders CSS assets.
......@@ -17,14 +17,14 @@ class CssCollectionRenderer implements AssetCollectionRendererInterface {
/**
* The state key/value store.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
/**
* Constructs a CssCollectionRenderer.
*
* @param \Drupal\Core\KeyValueStore\StateInterface
* @param \Drupal\Core\State\StateInterface
* The state key/value store.
*/
public function __construct(StateInterface $state) {
......
......@@ -6,7 +6,7 @@
namespace Drupal\Core\Asset;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
/**
......@@ -38,7 +38,7 @@ class JsCollectionOptimizer implements AssetCollectionOptimizerInterface {
/**
* The state key/value store.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -51,7 +51,7 @@ class JsCollectionOptimizer implements AssetCollectionOptimizerInterface {
* The optimizer for a single JS asset.
* @param \Drupal\Core\Asset\AssetDumperInterface
* The dumper for optimized JS assets.
* @param \Drupal\Core\KeyValueStore\StateInterface
* @param \Drupal\Core\State\StateInterface
* The state key/value store.
*/
public function __construct(AssetCollectionGrouperInterface $grouper, AssetOptimizerInterface $optimizer, AssetDumperInterface $dumper, StateInterface $state) {
......
......@@ -6,7 +6,7 @@
namespace Drupal\Core\Asset;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Component\Utility\Json;
/**
......@@ -17,14 +17,14 @@ class JsCollectionRenderer implements AssetCollectionRendererInterface {
/**
* The state key/value store.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
/**
* Constructs a CssCollectionRenderer.
*
* @param \Drupal\Core\KeyValueStore\StateInterface
* @param \Drupal\Core\State\StateInterface
* The state key/value store.
*/
public function __construct(StateInterface $state) {
......
......@@ -8,7 +8,7 @@
namespace Drupal\Core;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Lock\LockBackendInterface;
use Drupal\Core\Queue\QueueFactory;
use Drupal\Core\Session\AccountProxyInterface;
......@@ -44,7 +44,7 @@ class Cron implements CronInterface {
/**
* The state service.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -71,7 +71,7 @@ class Cron implements CronInterface {
* The lock service.
* @param \Drupal\Core\Queue\QueueFactory $queue_factory
* The queue service.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state service.
* @param \Drupal\Core\Session\AccountProxyInterface $current_user
* The current user.
......
......@@ -7,7 +7,7 @@
namespace Drupal\Core\EventSubscriber;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Routing\RouteBuildEvent;
use Drupal\Core\Routing\RoutingEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
......@@ -31,14 +31,14 @@ class PathRootsSubscriber implements EventSubscriberInterface {
/**
* The state key value store.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
/**
* Constructs a new PathRootsSubscriber instance.
*
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state key value store.
*/
public function __construct(StateInterface $state) {
......
......@@ -8,7 +8,7 @@
namespace Drupal\Core\Extension;
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
/**
* Class that manages enabled modules in a Drupal installation.
......@@ -18,7 +18,7 @@ class CachedModuleHandler extends ModuleHandler implements CachedModuleHandlerIn
/**
* State key/value store.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......
......@@ -10,7 +10,7 @@
use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\Cache\CacheCollector;
use Drupal\Core\Database\Connection;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Lock\LockBackendInterface;
/**
......@@ -21,7 +21,7 @@ class AliasWhitelist extends CacheCollector implements AliasWhitelistInterface {
/**
* The Key/Value Store to use for state.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -41,7 +41,7 @@ class AliasWhitelist extends CacheCollector implements AliasWhitelistInterface {
* The cache backend.
* @param \Drupal\Core\Lock\LockBackendInterface $lock
* The lock backend.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state keyvalue store.
* @param \Drupal\Core\Path\AliasStorageInterface $alias_storage
* The alias storage service.
......
......@@ -7,7 +7,7 @@
namespace Drupal\Core;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Component\Utility\Crypt;
/**
......@@ -18,14 +18,14 @@ class PrivateKey {
/**
* The state service.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
/**
* Constructs the token generator.
*
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state service.
*/
function __construct(StateInterface $state) {
......
......@@ -7,7 +7,7 @@
namespace Drupal\Core\Routing;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Symfony\Component\Routing\RouteCollection;
use Drupal\Core\Database\Connection;
......@@ -34,7 +34,7 @@ class MatcherDumper implements MatcherDumperInterface {
/**
* The state.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -51,7 +51,7 @@ class MatcherDumper implements MatcherDumperInterface {
* @param \Drupal\Core\Database\Connection $connection
* The database connection which will be used to store the route
* information.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state.
* @param string $table
* (optional) The table to store the route info in. Defaults to 'router'.
......
......@@ -9,7 +9,7 @@
use Drupal\Component\Discovery\YamlDiscovery;
use Drupal\Core\Controller\ControllerResolverInterface;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\Routing\RouteCollection;
......
......@@ -8,7 +8,7 @@
namespace Drupal\Core\Routing;
use Drupal\Core\ContentNegotiation;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\KernelEvent;
......@@ -33,7 +33,7 @@ class RoutePreloader implements EventSubscriberInterface {
/**
* The state key value store.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -56,7 +56,7 @@ class RoutePreloader implements EventSubscriberInterface {
*
* @param \Drupal\Core\Routing\RouteProviderInterface $route_provider
* The route provider.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state key value store.
* @param \Drupal\Core\ContentNegotiation $negotiation
* The content negotiation.
......
......@@ -8,7 +8,7 @@
namespace Drupal\Core\Routing;
use Drupal\Component\Utility\String;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
......@@ -46,7 +46,7 @@ class RouteProvider implements RouteProviderInterface, EventSubscriberInterface
/**
* The state.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -64,7 +64,7 @@ class RouteProvider implements RouteProviderInterface, EventSubscriberInterface
* A database connection object.
* @param \Drupal\Core\Routing\RouteBuilderInterface $route_builder
* The route builder.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state.
* @param string $table
* The table in the database to use for matching.
......
......@@ -2,10 +2,12 @@
/**
* @file
* Contains Drupal\Core\KeyValueStore\StateInterface.
* Contains \Drupal\Core\State\State.
*/
namespace Drupal\Core\KeyValueStore;
namespace Drupal\Core\State;
use Drupal\Core\KeyValueStore\KeyValueFactoryInterface;
/**
* Provides the state system using a key value store.
......
......@@ -2,10 +2,10 @@
/**
* @file
* Contains Drupal\Core\KeyValueStore\StateInterface.
* Contains \Drupal\Core\State\StateInterface.
*/
namespace Drupal\Core\KeyValueStore;
namespace Drupal\Core\State;
/**
* Defines the interface for the state system.
......
......@@ -12,7 +12,7 @@
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\user\EntityOwnerInterface;
......@@ -42,7 +42,7 @@ class CommentStatistics implements CommentStatisticsInterface {
/**
* The state service.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -55,7 +55,7 @@ class CommentStatistics implements CommentStatisticsInterface {
* The current logged in user.
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager service.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state service.
*/
public function __construct(Connection $database, AccountInterface $current_user, EntityManagerInterface $entity_manager, StateInterface $state) {
......
......@@ -10,7 +10,7 @@
use Drupal\Core\Config\ConfigCrudEvent;
use Drupal\Core\Config\ConfigEvents;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class EventSubscriber implements EventSubscriberInterface {
......@@ -18,14 +18,14 @@ class EventSubscriber implements EventSubscriberInterface {
/**
* The state key value store.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
/**
* Constructs the Event Subscriber object.
*
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state key value store.
*/
public function __construct(StateInterface $state) {
......
......@@ -10,7 +10,7 @@
use Drupal\Core\Config\ConfigCrudEvent;
use Drupal\Core\Config\ConfigEvents;
use Drupal\Core\Config\ConfigImporterEvent;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
......@@ -21,14 +21,14 @@ class EventSubscriber implements EventSubscriberInterface {
/**
* The key value store.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
/**
* Constructs the event subscriber.
*
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The key value store.
*/
public function __construct(StateInterface $state) {
......
......@@ -18,7 +18,7 @@
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\StorageInterface;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
/**
* Controller class for fields.
......@@ -42,7 +42,7 @@ class FieldConfigStorage extends ConfigEntityStorage {
/**
* The state keyvalue collection.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -63,7 +63,7 @@ class FieldConfigStorage extends ConfigEntityStorage {
* The entity manager.
* @param \Drupal\Core\Extension\ModuleHandler $module_handler
* The module handler.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state key value store.
*/
public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, StorageInterface $config_storage, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, ModuleHandler $module_handler, StateInterface $state) {
......
......@@ -18,7 +18,7 @@
use Drupal\Component\Uuid\UuidInterface;
use Drupal\Core\Config\StorageInterface;
use Drupal\Core\Extension\ModuleHandler;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
/**
* Controller class for field instances.
......@@ -40,7 +40,7 @@ class FieldInstanceConfigStorage extends ConfigEntityStorage {
/**
* The state keyvalue collection.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -59,7 +59,7 @@ class FieldInstanceConfigStorage extends ConfigEntityStorage {
* The language manager.
* @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
* The entity manager.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state key value store.
*/
public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, StorageInterface $config_storage, UuidInterface $uuid_service, LanguageManagerInterface $language_manager, EntityManagerInterface $entity_manager, StateInterface $state) {
......
......@@ -25,7 +25,7 @@ abstract class LanguageTestBase extends DrupalUnitTestBase {
/**
* The state storage service.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......
......@@ -11,7 +11,7 @@
use Drupal\Core\Language\Language;
use Drupal\Core\Language\LanguageManager;
use Drupal\locale\StringStorageInterface;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
......@@ -31,7 +31,7 @@ abstract class TranslateFormBase extends FormBase {
/**
* The state store.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -54,7 +54,7 @@ abstract class TranslateFormBase extends FormBase {
*
* @param \Drupal\locale\StringStorageInterface $locale_storage
* The locale storage.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state service.
* @param \Drupal\Core\Language\LanguageManager $language_manager
* The language manager.
......
......@@ -12,7 +12,7 @@
use Drupal\Core\Database\Connection;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Entity\Query\QueryFactory;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Language\LanguageManagerInterface;
use Symfony\Cmf\Component\Routing\RouteObjectInterface;
use Symfony\Component\HttpFoundation\RequestStack;
......@@ -68,7 +68,7 @@ class MenuTree implements MenuTreeInterface {
/**
* The state.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -131,7 +131,7 @@ class MenuTree implements MenuTreeInterface {
* The entity manager.
* @param \Drupal\Core\Entity\Query\QueryFactory $entity_query_factory
* The entity query factory.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state.
*/
public function __construct(Connection $database, CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager, RequestStack $request_stack, EntityManagerInterface $entity_manager, QueryFactory $entity_query_factory, StateInterface $state) {
......
......@@ -82,7 +82,7 @@ class MenuTreeTest extends UnitTestCase {
/**
* The mocked state.
*
* @var \Drupal\Core\KeyValueStore\StateInterface|\PHPUnit_Framework_MockObject_MockObject
* @var \Drupal\Core\State\StateInterface|\PHPUnit_Framework_MockObject_MockObject
*/
protected $state;
......@@ -130,7 +130,7 @@ protected function setUp() {
$this->entityQueryFactory = $this->getMockBuilder('Drupal\Core\Entity\Query\QueryFactory')
->disableOriginalConstructor()
->getMock();
$this->state = $this->getMock('Drupal\Core\KeyValueStore\StateInterface');
$this->state = $this->getMock('Drupal\Core\State\StateInterface');
$this->menuTree = new TestMenuTree($this->connection, $this->cacheBackend, $this->languageManager, $this->requestStack, $this->entityManager, $this->entityQueryFactory, $this->state);
}
......
......@@ -8,7 +8,7 @@
namespace Drupal\migrate\Plugin\migrate\destination;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\field\FieldInfo;
use Drupal\migrate\Entity\MigrationInterface;
use Drupal\migrate\Plugin\MigratePluginManager;
......@@ -25,7 +25,7 @@ class EntityComment extends EntityContentBase {
/**
* The state storage object.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -48,7 +48,7 @@ class EntityComment extends EntityContentBase {
* The migrate plugin manager.
* @param \Drupal\field\FieldInfo $field_info
* The field and instance definitions service.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state storage object.
*/
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, EntityStorageInterface $storage, array $bundles, MigratePluginManager $plugin_manager, FieldInfo $field_info, StateInterface $state) {
......
......@@ -12,7 +12,7 @@
use Drupal\Core\Database\Query\SelectExtender;
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Language\Language;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Access\AccessibleInterface;
......@@ -63,7 +63,7 @@ class NodeSearch extends ConfigurableSearchPluginBase implements AccessibleInter
/**
* The Drupal state object used to set 'node.cron_last'.
*
* @var \Drupal\Core\KeyValueStore\StateInterface
* @var \Drupal\Core\State\StateInterface
*/
protected $state;
......@@ -135,7 +135,7 @@ static public function create(ContainerInterface $container, array $configuratio
* A module manager object.
* @param \Drupal\Core\Config\Config $search_settings
* A config object for 'search.settings'.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The Drupal state object used to set 'node.cron_last'.
* @param \Drupal\Core\Session\AccountInterface $account
* The $account object to use for checking for access to advanced search.
......
......@@ -8,7 +8,7 @@
namespace Drupal\rest\Plugin\views\display;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Core\Routing\RouteProviderInterface;
use Drupal\Core\ContentNegotiation;
use Drupal\views\ViewExecutable;
......@@ -97,7 +97,7 @@ class RestExport extends PathPluginBase {
* The plugin implementation definition.
* @param \Drupal\Core\Routing\RouteProviderInterface $route_provider
* The route provider
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state key value store.
* @param \Drupal\Core\ContentNegotiation $content_negotiation
* The content negotiation library.
......
......@@ -82,7 +82,7 @@ protected function setUp() {
->getMock();
$container->set('router.route_provider', $route_provider);
$state = $this->getMock('\Drupal\Core\KeyValueStore\StateInterface');
$state = $this->getMock('\Drupal\Core\State\StateInterface');
$container->set('state', $state);
$style_manager = $this->getMockBuilder('\Drupal\views\Plugin\ViewsPluginManager')
......
......@@ -254,7 +254,7 @@ public function containerBuild(ContainerBuilder $container) {
->addArgument(new Reference('service_container'))
->addArgument(new Reference('settings'));
$container->register('state', 'Drupal\Core\KeyValueStore\State')
$container->register('state', 'Drupal\Core\State\State')
->addArgument(new Reference('keyvalue'));
}
......
......@@ -9,7 +9,7 @@
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\CronInterface;
use Drupal\Core\KeyValueStore\StateInterface;
use Drupal\Core\State\StateInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\PostResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents;
......@@ -36,7 +36,7 @@ class AutomaticCron implements EventSubscriberInterface {
/**
* The state key value store.
*
* Drupal\Core\KeyValueStore\StateInterface;
* Drupal\Core\State\StateInterface;
*/
protected $state;
......@@ -47,7 +47,7 @@ class AutomaticCron implements EventSubscriberInterface {
* The cron service.
* @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
* The config factory.
* @param \Drupal\Core\KeyValueStore\StateInterface $state
* @param \Drupal\Core\State\StateInterface $state
* The state key value store.
*/
public function __construct(CronInterface $cron, ConfigFactoryInterface $config_factory, StateInterface $state) {
......
......@@ -9,7 +9,7 @@
use Drupal\Core\Config\ConfigFactoryInterface;