diff --git a/src/Adapters/Laravel/ExceptionHandler.php b/src/Adapters/Laravel/ExceptionHandler.php index b27caa37..08e8e4be 100644 --- a/src/Adapters/Laravel/ExceptionHandler.php +++ b/src/Adapters/Laravel/ExceptionHandler.php @@ -12,7 +12,7 @@ namespace NunoMaduro\Collision\Adapters\Laravel; use Exception; -use Illuminate\Contracts\Container\Container as Application; +use Illuminate\Contracts\Container\Container; use NunoMaduro\Collision\Contracts\Provider as ProviderContract; use Illuminate\Contracts\Debug\ExceptionHandler as ExceptionHandlerContract; use Symfony\Component\Console\Exception\ExceptionInterface as SymfonyConsoleExceptionInterface; @@ -43,12 +43,12 @@ class ExceptionHandler implements ExceptionHandlerContract /** * Creates a new instance of the ExceptionHandler. * - * @param \Illuminate\Contracts\Foundation\Application $app + * @param \Illuminate\Contracts\Container\Container $container * @param \Illuminate\Contracts\Debug\ExceptionHandler $appExceptionHandler */ - public function __construct(Application $app, ExceptionHandlerContract $appExceptionHandler) + public function __construct(Container $container, ExceptionHandlerContract $appExceptionHandler) { - $this->app = $app; + $this->container = $container; $this->appExceptionHandler = $appExceptionHandler; } @@ -76,7 +76,7 @@ public function renderForConsole($output, Exception $e) if ($e instanceof SymfonyConsoleExceptionInterface) { $this->appExceptionHandler->renderForConsole($output, $e); } else { - $handler = $this->app->make(ProviderContract::class) + $handler = $this->container->make(ProviderContract::class) ->register() ->getHandler() ->setOutput($output);