diff --git a/app/config/packages/dingo/api/config.php b/app/config/packages/dingo/api/config.php index 5c1e2965..8e980234 100644 --- a/app/config/packages/dingo/api/config.php +++ b/app/config/packages/dingo/api/config.php @@ -82,7 +82,7 @@ return [ }, 'api_key' => function ($app) { - return new CachetHQ\Cachet\Auth\ApiKeyAuthenticator(); + return new CachetHQ\Cachet\Http\Auth\ApiKeyAuthenticator(); }, ], diff --git a/src/Auth/ApiKeyAuthenticator.php b/src/Http/Auth/ApiKeyAuthenticator.php similarity index 97% rename from src/Auth/ApiKeyAuthenticator.php rename to src/Http/Auth/ApiKeyAuthenticator.php index 64cd9711..844640c1 100644 --- a/src/Auth/ApiKeyAuthenticator.php +++ b/src/Http/Auth/ApiKeyAuthenticator.php @@ -1,6 +1,6 @@ app->bindShared('CachetHQ\Cachet\Auth\ApiKeyAuthenticator', function () { + $this->app->bindShared('CachetHQ\Cachet\Http\Auth\ApiKeyAuthenticator', function () { return new ApiKeyAuthenticator(); }); }