Skip to content
Snippets Groups Projects
Verified Commit 0b07588d authored by Michael Lenahan's avatar Michael Lenahan Committed by Alex Pott
Browse files

Issue #3377863 by alexpott, michaellenahan: "Call to a member function...

Issue #3377863 by alexpott, michaellenahan: "Call to a member function setProcessor() on null" when running drush updb
parent 5772f957
No related branches found
Tags 8.x-1.0
No related merge requests found
......@@ -58,5 +58,11 @@ function vgwort_post_update_add_legal_rights_to_config() {
* Change VG Wort queue to daemon/drush processing.
*/
function vgwort_post_update_daemon_queue() {
Queue::load('vgwort')->setProcessor('daemon')->save();
$queue = Queue::load('vgwort');
if (!$queue instanceof Queue) {
// Read the file from the module's config.
$config = (new FileStorage(\Drupal::service('extension.list.module')->getPath('vgwort') . '/' . InstallStorage::CONFIG_INSTALL_DIRECTORY))->read('advancedqueue.advancedqueue_queue.vgwort');
$queue = Queue::create($config);
}
$queue->setProcessor('daemon')->save();
}
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