10.3.0 core state services changed

Issue information

From user: kecsot

Related to !432 (merged)

Contribution record

Fork management

Problem/Motivation

I've got an error after d10.3.0 update.
Fatal error: Uncaught TypeError: Drupal\eca\EcaState::__construct(): Argument #4 ($time) must be of type Drupal\Component\Datetime\TimeInterface, Drupal\Core\Cache\DatabaseBackend given,

services.yml changed in d10.3.0

from (10.2.7)

  state:
    class: Drupal\Core\State\State
    arguments: ['@keyvalue']

to (10.3.0)

  
state:
    class: Drupal\Core\State\State
    arguments: ['@keyvalue', '@cache.bootstrap', '@lock']
    tags:
      - { name: needs_destruction }

Proposed resolution

We need to change the eca.services.yml

  eca.state:
    class: Drupal\eca\EcaState
    parent: state
-    arguments: ['@cache.bootstrap', '@lock', '@datetime.time']
+    arguments: ['@datetime.time']
Edited by drupalbot
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information