Skip to content

Commit

Permalink
Allow instance of HttpApplicationInterface in RoutingMiddleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Iandenh committed Sep 13, 2018
1 parent 7f33677 commit c9249af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Routing/Middleware/RoutingMiddleware.php
Expand Up @@ -15,8 +15,8 @@
namespace Cake\Routing\Middleware;

use Cake\Cache\Cache;
use Cake\Core\HttpApplicationInterface;
use Cake\Core\PluginApplicationInterface;
use Cake\Http\BaseApplication;
use Cake\Http\MiddlewareQueue;
use Cake\Http\Runner;
use Cake\Routing\Exception\RedirectException;
Expand All @@ -39,7 +39,7 @@ class RoutingMiddleware
/**
* The application that will have its routing hook invoked.
*
* @var \Cake\Http\BaseApplication
* @var \Cake\Core\HttpApplicationInterface
*/
protected $app;

Expand All @@ -54,10 +54,10 @@ class RoutingMiddleware
/**
* Constructor
*
* @param \Cake\Http\BaseApplication $app The application instance that routes are defined on.
* @param \Cake\Core\HttpApplicationInterface $app The application instance that routes are defined on.
* @param string|null $cacheConfig The cache config name to use or null to disable routes cache
*/
public function __construct(BaseApplication $app = null, $cacheConfig = null)
public function __construct(HttpApplicationInterface $app = null, $cacheConfig = null)
{
$this->app = $app;
$this->cacheConfig = $cacheConfig;
Expand Down

0 comments on commit c9249af

Please sign in to comment.