10.3.0 core state services changed
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3456136. --> Reported by: [kecsot](https://www.drupal.org/user/2735135) Related to !432 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I've got an error after d10.3.0 update.<br> <code>Fatal error: Uncaught TypeError: Drupal\eca\EcaState::__construct(): Argument #4 ($time) must be of type Drupal\Component\Datetime\TimeInterface, Drupal\Core\Cache\DatabaseBackend given, </code></p> <p>services.yml changed in d10.3.0</p> <p>from (10.2.7)</p> <pre>&nbsp; state:<br>&nbsp;&nbsp;&nbsp; class: Drupal\Core\State\State<br>&nbsp;&nbsp;&nbsp; arguments: ['@keyvalue']</pre><p>to (10.3.0)</p> <pre>&nbsp; <br>state:<br>&nbsp;&nbsp;&nbsp; class: Drupal\Core\State\State<br>&nbsp;&nbsp;&nbsp; arguments: ['@keyvalue', '@cache.bootstrap', '@lock']<br>&nbsp;&nbsp;&nbsp; tags:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - { name: needs_destruction }</pre><h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>We need to change the eca.services.yml</p> <pre>&nbsp; eca.state:<br>&nbsp;&nbsp;&nbsp; class: Drupal\eca\EcaState<br>&nbsp;&nbsp;&nbsp; parent: state<br>-&nbsp;&nbsp;&nbsp; arguments: ['@cache.bootstrap', '@lock', '@datetime.time']<br>+&nbsp;&nbsp;&nbsp; arguments: ['@datetime.time']</pre>
issue