Skip to content
Snippets Groups Projects

Issue #3224274: Issue with config override

Files

+ 4
4
@@ -18,9 +18,9 @@ use Drupal\Core\Queue\QueueWorkerManager as CoreQueueWorkerManager;
class QueueWorkerManager extends CoreQueueWorkerManager {
/**
* The module config.
* Config factory.
*
* @var \Drupal\Core\Config\ImmutableConfig
* @var \Drupal\Core\Config\ConfigFactoryInterface
*/
protected $config;
@@ -39,14 +39,14 @@ class QueueWorkerManager extends CoreQueueWorkerManager {
*/
public function __construct(\Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config) {
parent::__construct($namespaces, $cache_backend, $module_handler);
$this->config = $config->get('queue_order.settings');
$this->config = $config;
}
/**
* {@inheritdoc}
*/
public function getDefinitions() {
return self::sortDefinitions(parent::getDefinitions(), $this->config->get('order') ?: []);
return self::sortDefinitions(parent::getDefinitions(), $this->config->get('queue_order.settings')->get('order') ?: []);
}
/**
Loading