diff --git a/src/Illuminate/Foundation/Exceptions/Handler.php b/src/Illuminate/Foundation/Exceptions/Handler.php index 340468fe6a30..da6011c0359a 100644 --- a/src/Illuminate/Foundation/Exceptions/Handler.php +++ b/src/Illuminate/Foundation/Exceptions/Handler.php @@ -10,7 +10,7 @@ use Illuminate\Contracts\Container\Container; use Illuminate\Validation\ValidationException; use Illuminate\Auth\Access\AuthorizationException; -use Illuminate\Http\Exception\HttpResponseException; +use Illuminate\Http\Exceptions\HttpResponseException; use Symfony\Component\Debug\Exception\FlattenException; use Illuminate\Database\Eloquent\ModelNotFoundException; use Symfony\Component\HttpKernel\Exception\HttpException; diff --git a/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php b/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php index 4bdeedb3d3bc..475bfac00415 100644 --- a/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php +++ b/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php @@ -3,7 +3,7 @@ namespace Illuminate\Foundation\Http\Middleware; use Closure; -use Illuminate\Http\Exception\PostTooLargeException; +use Illuminate\Http\Exceptions\PostTooLargeException; class ValidatePostSize { @@ -14,7 +14,7 @@ class ValidatePostSize * @param \Closure $next * @return mixed * - * @throws \Illuminate\Http\Exception\PostTooLargeException + * @throws \Illuminate\Http\Exceptions\PostTooLargeException */ public function handle($request, Closure $next) { diff --git a/src/Illuminate/Http/Exception/HttpResponseException.php b/src/Illuminate/Http/Exceptions/HttpResponseException.php similarity index 95% rename from src/Illuminate/Http/Exception/HttpResponseException.php rename to src/Illuminate/Http/Exceptions/HttpResponseException.php index 0dcf48aea864..b27052f02c15 100644 --- a/src/Illuminate/Http/Exception/HttpResponseException.php +++ b/src/Illuminate/Http/Exceptions/HttpResponseException.php @@ -1,6 +1,6 @@ getRouter(); $router->get('foo/bar', function () { - throw new \Illuminate\Http\Exception\HttpResponseException(new Response('hello')); + throw new \Illuminate\Http\Exceptions\HttpResponseException(new Response('hello')); }); $this->assertEquals('hello', $router->dispatch(Request::create('foo/bar', 'GET'))->getContent());