1
0
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:
Franz Liedke
2017-01-02 22:54:55 +01:00
parent ec8ae6e03b
commit b5b18dd436
7 changed files with 47 additions and 15 deletions

View File

@@ -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);