mirror of
https://github.com/flarum/core.git
synced 2025-10-14 16:34:26 +02:00
Update to Zend Stratigility 1.3
* Fix dependency version constraint. (Reverts #1066.) * Allow exceptions to be raised when dispatching middleware. * Fix our error handler middleware (do not implement Stratigility's error handler interface, catch exceptions instead). See https://docs.zendframework.com/zend-stratigility/migration/to-v2/. Closes #1069.
This commit is contained in:
@@ -26,6 +26,7 @@ class FullStackServer extends AbstractServer
|
||||
protected function getMiddleware(Application $app)
|
||||
{
|
||||
$pipe = new MiddlewarePipe;
|
||||
$pipe->raiseThrowables();
|
||||
|
||||
$pipe->pipe(new ApiServer);
|
||||
$pipe->pipe(new AdminServer);
|
||||
|
Reference in New Issue
Block a user