Skip to content
Snippets Groups Projects
Commit 553a47cd authored by catch's avatar catch
Browse files

Issue #3437344 by longwave: State cache bin is inconsistently chosen

parent 148e1c90
No related branches found
No related tags found
No related merge requests found
...@@ -50,7 +50,7 @@ class State extends CacheCollector implements StateInterface { ...@@ -50,7 +50,7 @@ class State extends CacheCollector implements StateInterface {
public function __construct(KeyValueFactoryInterface $key_value_factory, CacheBackendInterface $cache = NULL, LockBackendInterface $lock = NULL) { public function __construct(KeyValueFactoryInterface $key_value_factory, CacheBackendInterface $cache = NULL, LockBackendInterface $lock = NULL) {
if (!$cache) { if (!$cache) {
@trigger_error('Calling ' . __METHOD__ . '() without the $cache argument is deprecated in drupal:10.3.0 and is required in drupal:11.0.0. See https://www.drupal.org/node/3177901', E_USER_DEPRECATED); @trigger_error('Calling ' . __METHOD__ . '() without the $cache argument is deprecated in drupal:10.3.0 and is required in drupal:11.0.0. See https://www.drupal.org/node/3177901', E_USER_DEPRECATED);
$cache = \Drupal::cache('discovery'); $cache = \Drupal::cache('bootstrap');
} }
if (!$lock) { if (!$lock) {
@trigger_error('Calling ' . __METHOD__ . '() without the $lock argument is deprecated in drupal:10.3.0 and is required in drupal:11.0.0. See https://www.drupal.org/node/3177901', E_USER_DEPRECATED); @trigger_error('Calling ' . __METHOD__ . '() without the $lock argument is deprecated in drupal:10.3.0 and is required in drupal:11.0.0. See https://www.drupal.org/node/3177901', E_USER_DEPRECATED);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment