10.3.0 core state services changed
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