Skip to content

Commit

Permalink
Change namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
gms8994 committed Nov 20, 2020
1 parent 2b44fbf commit 0778a5b
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
},
"autoload": {
"psr-4": {
"Chrisbjr\\ApiGuard\\": "src",
"Chrisbjr\\ApiGuard\\Tests\\": "tests"
"Expanse\\ApiGuard\\": "src",
"Expanse\\ApiGuard\\Tests\\": "tests"
}
},
"minimum-stability": "stable"
Expand Down
4 changes: 2 additions & 2 deletions src/Console/Commands/GenerateApiKey.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Chrisbjr\ApiGuard\Console\Commands;
namespace Expanse\ApiGuard\Console\Commands;

use Chrisbjr\ApiGuard\Models\ApiKey;
use Expanse\ApiGuard\Models\ApiKey;
use Illuminate\Console\Command;

class GenerateApiKey extends Command
Expand Down
4 changes: 2 additions & 2 deletions src/Events/ApiKeyAuthenticated.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Chrisbjr\ApiGuard\Events;
namespace Expanse\ApiGuard\Events;

use Chrisbjr\ApiGuard\Models\ApiKey;
use Expanse\ApiGuard\Models\ApiKey;
use Illuminate\Queue\SerializesModels;

class ApiKeyAuthenticated
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Controllers/ApiGuardController.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Chrisbjr\ApiGuard\Http\Controllers;
namespace Expanse\ApiGuard\Http\Controllers;

use EllipseSynergie\ApiResponse\Laravel\Response;
use Illuminate\Routing\Controller;
Expand Down
8 changes: 4 additions & 4 deletions src/Http/Middleware/AuthenticateApiKey.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace Chrisbjr\ApiGuard\Http\Middleware;
namespace Expanse\ApiGuard\Http\Middleware;

use Carbon\Carbon;
use Chrisbjr\ApiGuard\Events\ApiKeyAuthenticated;
use Chrisbjr\ApiGuard\Models\Device;
use Expanse\ApiGuard\Events\ApiKeyAuthenticated;
use Expanse\ApiGuard\Models\Device;
use Closure;

class AuthenticateApiKey
Expand All @@ -21,7 +21,7 @@ public function handle($request, Closure $next, $guard = null)
{
$apiKeyValue = $request->header(config('apiguard.header_key', 'X-Authorization'));

$apiKey = app(config('apiguard.models.api_key', 'Chrisbjr\ApiGuard\Models\ApiKey'))->where('key', $apiKeyValue)
$apiKey = app(config('apiguard.models.api_key', Expanse\ApiGuard\Models\ApiKey::class))->where('key', $apiKeyValue)
->first();

if (empty($apiKey)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Requests/ApiGuardFormRequest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Chrisbjr\ApiGuard\Http\Requests;
namespace Expanse\ApiGuard\Http\Requests;

use EllipseSynergie\ApiResponse\Laravel\Response;
use Illuminate\Contracts\Validation\Validator;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/ApiKey.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Chrisbjr\ApiGuard\Models;
namespace Expanse\ApiGuard\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
Expand Down
4 changes: 2 additions & 2 deletions src/Models/Mixins/Apikeyable.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Chrisbjr\ApiGuard\Models\Mixins;
namespace Expanse\ApiGuard\Models\Mixins;

use Chrisbjr\ApiGuard\Models\ApiKey;
use Expanse\ApiGuard\Models\ApiKey;

trait Apikeyable
{
Expand Down
6 changes: 3 additions & 3 deletions src/Providers/ApiGuardServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Chrisbjr\ApiGuard\Providers;
namespace Expanse\ApiGuard\Providers;

use Chrisbjr\ApiGuard\Console\Commands\GenerateApiKey;
use Chrisbjr\ApiGuard\Http\Middleware\AuthenticateApiKey;
use Expanse\ApiGuard\Console\Commands\GenerateApiKey;
use Expanse\ApiGuard\Http\Middleware\AuthenticateApiKey;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\App;
use Illuminate\Support\ServiceProvider;
Expand Down

0 comments on commit 0778a5b

Please sign in to comment.