Navigation Menu

Skip to content

Commit

Permalink
Update push() to addd() in test app.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Jul 25, 2016
1 parent f492ddb commit 3c3bbbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_app/TestApp/Application.php
Expand Up @@ -33,8 +33,8 @@ public function bootstrap()

public function middleware($middleware)
{
$middleware->push(new RoutingMiddleware());
$middleware->push(function ($req, $res, $next) {
$middleware->add(new RoutingMiddleware());
$middleware->add(function ($req, $res, $next) {
$res = $next($req, $res);

return $res->withHeader('X-Middleware', 'true');
Expand Down

0 comments on commit 3c3bbbe

Please sign in to comment.