Moved the api key auth to the http namespace

This commit is contained in:
Graham Campbell
2015-01-04 12:33:57 +00:00
parent 6b4632c3ad
commit 207e9f9901
3 changed files with 4 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ return [
},
'api_key' => function ($app) {
return new CachetHQ\Cachet\Auth\ApiKeyAuthenticator();
return new CachetHQ\Cachet\Http\Auth\ApiKeyAuthenticator();
},
],

View File

@@ -1,6 +1,6 @@
<?php
namespace CachetHQ\Cachet\Auth;
namespace CachetHQ\Cachet\Http\Auth;
use CachetHQ\Cachet\Models\User;
use Dingo\Api\Auth\AuthorizationProvider;

View File

@@ -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();
});
}