Skip to content
Permalink
Browse files

Move middleware into more relevant packages.

Put middleware classes closer to the packages they interact with. This
lets us reduce the number of inter-package dependencies we have. Both
Error and Routing are not standalone packages yet, while I'd like
cake/http to be standalone.
  • Loading branch information...
markstory committed May 4, 2016
1 parent cc9271b commit 4de7bae59b3d7f622c023cfe75115062049cc855
@@ -12,7 +12,7 @@
* @since 3.3.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Http\Middleware;
namespace Cake\Error\Middleware;
use Cake\Core\App;
use Cake\Http\ResponseTransformer;
@@ -12,7 +12,7 @@
* @since 3.3.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Http\Middleware;
namespace Cake\Routing\Middleware;
use Cake\Routing\Exception\RedirectException;
use Cake\Routing\Router;
@@ -12,10 +12,10 @@
* @since 3.3.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Test\TestCase\Http\Middleware;
namespace Cake\Test\TestCase\Error\Middleware;
use Cake\Core\Configure;
use Cake\Http\Middleware\ErrorHandlerMiddleware;
use Cake\Error\Middleware\ErrorHandlerMiddleware;
use Cake\Http\ServerRequestFactory;
use Cake\Network\Response as CakeResponse;
use Cake\TestSuite\TestCase;
@@ -12,9 +12,9 @@
* @since 3.3.0
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/
namespace Cake\Test\TestCase\Http\Middleware;
namespace Cake\Test\TestCase\Routing\Middleware;
use Cake\Http\Middleware\RoutingMiddleware;
use Cake\Routing\Middleware\RoutingMiddleware;
use Cake\Routing\Router;
use Cake\TestSuite\TestCase;
use Zend\Diactoros\Request;

0 comments on commit 4de7bae

Please sign in to comment.
You can’t perform that action at this time.