Fix unexpected EventDispatcher exception on logout
This commit is contained in:
parent
07a0042520
commit
f5d0555ebd
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
namespace Kanboard\Core\Session;
|
||||
|
||||
use Kanboard\Core\Base;
|
||||
use Symfony\Contracts\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Session Manager
|
||||
|
|
@ -59,7 +60,7 @@ class SessionManager extends Base
|
|||
*/
|
||||
public function close()
|
||||
{
|
||||
$this->dispatcher->dispatch(self::EVENT_DESTROY);
|
||||
$this->dispatcher->dispatch(new Event(), self::EVENT_DESTROY);
|
||||
|
||||
// Destroy the session cookie
|
||||
$params = session_get_cookie_params();
|
||||
|
|
|
|||
Loading…
Reference in New Issue