bump symfony to 5.4.21
adapt to the new EventDispatcher API - Symfony\Component\EventDispatcher => Symfony\Contracts\EventDispatcher - dispatch() arguments swap - execute() must return int
This commit is contained in:
committed by
Frédéric Guillot
parent
bb4b547ffe
commit
bd7f3d219d
@@ -3,6 +3,7 @@
|
||||
namespace Kanboard\Middleware;
|
||||
|
||||
use Kanboard\Core\Controller\BaseMiddleware;
|
||||
use Symfony\Contracts\EventDispatcher\Event;
|
||||
|
||||
/**
|
||||
* Class BootstrapMiddleware
|
||||
@@ -18,7 +19,7 @@ class BootstrapMiddleware extends BaseMiddleware
|
||||
public function execute()
|
||||
{
|
||||
$this->sessionManager->open();
|
||||
$this->dispatcher->dispatch('app.bootstrap');
|
||||
$this->dispatcher->dispatch(new Event, 'app.bootstrap');
|
||||
$this->sendHeaders();
|
||||
$this->next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user