Merge pull request #271 from GrahamForks/http
Moved the api key auth to the http namespace
This commit is contained in:
@@ -82,7 +82,7 @@ return [
|
||||
},
|
||||
|
||||
'api_key' => function ($app) {
|
||||
return new CachetHQ\Cachet\Auth\ApiKeyAuthenticator();
|
||||
return new CachetHQ\Cachet\Http\Auth\ApiKeyAuthenticator();
|
||||
},
|
||||
|
||||
],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace CachetHQ\Cachet\Auth;
|
||||
namespace CachetHQ\Cachet\Http\Auth;
|
||||
|
||||
use CachetHQ\Cachet\Models\User;
|
||||
use Dingo\Api\Auth\AuthorizationProvider;
|
||||
@@ -5,8 +5,8 @@ namespace CachetHQ\Cachet\Http\Controllers;
|
||||
use CachetHQ\Cachet\Models\Component;
|
||||
use CachetHQ\Cachet\Models\Incident;
|
||||
use CachetHQ\Cachet\Models\Setting;
|
||||
use Exception;
|
||||
use Carbon\Carbon;
|
||||
use Exception;
|
||||
use GrahamCampbell\Binput\Facades\Binput;
|
||||
use GrahamCampbell\Markdown\Facades\Markdown;
|
||||
use Illuminate\Routing\Controller;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace CachetHQ\Cachet\Providers;
|
||||
|
||||
use CachetHQ\Cachet\Auth\ApiKeyAuthenticator;
|
||||
use CachetHQ\Cachet\Http\Auth\ApiKeyAuthenticator;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AuthServiceProvider extends ServiceProvider
|
||||
@@ -24,7 +24,7 @@ class AuthServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->bindShared('CachetHQ\Cachet\Auth\ApiKeyAuthenticator', function () {
|
||||
$this->app->bindShared('CachetHQ\Cachet\Http\Auth\ApiKeyAuthenticator', function () {
|
||||
return new ApiKeyAuthenticator();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user