diff --git a/composer.json b/composer.json index 73b13bf..94b9272 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,9 @@ { - "name": "optimus/heimdal", + "name": "digitalroll/heimdal", + "description": "Laravel 9 support", "autoload": { "psr-4": { - "Optimus\\Heimdal\\": "src/" + "Digitalroll\\Heimdal\\": "src/" } }, "autoload-dev": { @@ -11,7 +12,7 @@ ] }, "require": { - "laravel/framework": "~7.0|~8.0" + "laravel/framework": "~7.0|~8.0|~9.0" }, "require-dev": { "mockery/mockery": "1.3.*", diff --git a/src/ExceptionHandler.php b/src/ExceptionHandler.php index b8d7d96..c7f0b1a 100644 --- a/src/ExceptionHandler.php +++ b/src/ExceptionHandler.php @@ -1,14 +1,14 @@ config['add_cors_headers']) { if (!class_exists(CorsService::class)) { throw new InvalidArgumentException( - 'asm89/stack-cors has not been installed. Optimus\Heimdal needs it for adding CORS headers to response.' + 'asm89/stack-cors has not been installed. Digitalroll\Heimdal needs it for adding CORS headers to response.' ); } diff --git a/src/Formatters/BaseFormatter.php b/src/Formatters/BaseFormatter.php index 61e94d2..55f2cb9 100644 --- a/src/Formatters/BaseFormatter.php +++ b/src/Formatters/BaseFormatter.php @@ -1,6 +1,6 @@ false, @@ -13,11 +13,11 @@ Throwable::class => Formatters\ExceptionFormatter::class, ], - 'response_factory' => \Optimus\Heimdal\ResponseFactory::class, + 'response_factory' => \Digitalroll\Heimdal\ResponseFactory::class, 'reporters' => [ /*'sentry' => [ - 'class' => \Optimus\Heimdal\Reporters\SentryReporter::class, + 'class' => \Digitalroll\Heimdal\Reporters\SentryReporter::class, 'config' => [ 'dsn' => '', // For extra options see https://docs.sentry.io/clients/php/config/ diff --git a/tests/ExceptionHandlerTest.php b/tests/ExceptionHandlerTest.php index e5ceb7b..45541e4 100644 --- a/tests/ExceptionHandlerTest.php +++ b/tests/ExceptionHandlerTest.php @@ -2,8 +2,8 @@ use Illuminate\Http\Request; use Illuminate\Http\JsonResponse; -use Optimus\Heimdal\ExceptionHandler; -use Optimus\Heimdal\Formatters\BaseFormatter; +use Digitalroll\Heimdal\ExceptionHandler; +use Digitalroll\Heimdal\Formatters\BaseFormatter; use Orchestra\Testbench\TestCase; use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; diff --git a/tests/Formatters/ExceptionFormatterTest.php b/tests/Formatters/ExceptionFormatterTest.php index 253ec22..6d238d6 100644 --- a/tests/Formatters/ExceptionFormatterTest.php +++ b/tests/Formatters/ExceptionFormatterTest.php @@ -1,7 +1,7 @@