Fix unexpected EventDispatcher exception on logout

This commit is contained in:
Frédéric Guillot
2023-07-07 17:51:27 -07:00
committed by Frédéric Guillot
parent 07a0042520
commit f5d0555ebd
2 changed files with 4 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ use Exception;
use Kanboard\Core\Base;
use Kanboard\Job\BaseJob;
use SimpleQueue\Job;
use Symfony\Contracts\EventDispatcher\Event;
/**
* Class JobHandler
@@ -84,6 +85,6 @@ class JobHandler extends Base
{
$this->memoryCache->flush();
$this->actionManager->removeEvents();
$this->dispatcher->dispatch('app.bootstrap');
$this->dispatcher->dispatch(new Event(), 'app.bootstrap');
}
}