Merge pull request #271 from GrahamForks/http

Moved the api key auth to the http namespace
This commit is contained in:
Graham Campbell
2015-01-04 13:12:57 +00:00
4 changed files with 5 additions and 5 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

@@ -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;

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