Skip to content

Commit 5aa17a9

Browse files
author
Diego Hernandes
committed
namespacing
1 parent b7bc613 commit 5aa17a9

File tree

9 files changed

+28
-28
lines changed

9 files changed

+28
-28
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "kino/laravel-jwt",
2+
"name": "codecasts/laravel-jwt",
33
"description": "Dead simple JWT Auth Provider for Laravel 5.4+",
44
"type": "library",
55
"license": "MIT",
@@ -11,7 +11,7 @@
1111
],
1212
"autoload": {
1313
"psr-4": {
14-
"Kino\\Auth\\JWT\\": "src/"
14+
"Codecasts\\Auth\\JWT\\": "src/"
1515
}
1616
},
1717
"minimum-stability": "stable",

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Laravel JWT
22

3-
![Readme Art](http://imageshack.com/a/img923/9629/0S3fQu.png)
3+
![Readme Art](http://imageshack.com/a/img922/4489/tftxQ1.png)
44

55
This package provides out-of-the-box API authentication using JWT for Laravel.
66

@@ -9,7 +9,7 @@ This package provides out-of-the-box API authentication using JWT for Laravel.
99
You can install this package by running:
1010

1111
```bash
12-
composer require kino/laravel-jwt
12+
composer require codecasts/laravel-jwt
1313
```
1414

1515
## Setup.
@@ -27,7 +27,7 @@ section of your `config/app.php` file:
2727

2828
// ... other providers omitted
2929

30-
Kino\Auth\JWT\ServiceProvider::class,
30+
Codecasts\Auth\JWT\ServiceProvider::class,
3131

3232
],
3333
```
@@ -38,7 +38,7 @@ Publish the configuration file (`config/jwt.php`) by running the
3838
following command after registering the Service Provider.
3939

4040
```bash
41-
php artisan vendor:publish --provider="Kino\Auth\JWT\ServiceProvider"
41+
php artisan vendor:publish --provider="Codecasts\Auth\JWT\ServiceProvider"
4242
```
4343

4444
#### 3) Generate a Secret.

src/Auth/Guard.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Kino\Auth\JWT\Auth;
3+
namespace Codecasts\Auth\JWT\Auth;
44

55
use Illuminate\Auth\Events\Attempting;
66
use Illuminate\Auth\Events\Failed;
@@ -10,7 +10,7 @@
1010
use Illuminate\Contracts\Events\Dispatcher;
1111
use Symfony\Component\HttpFoundation\Request;
1212
use Illuminate\Support\Str;
13-
use Kino\Auth\JWT\Contracts\Auth\Guard as GuardContract;
13+
use Codecasts\Auth\JWT\Contracts\Auth\Guard as GuardContract;
1414
use Lcobucci\JWT\Token;
1515

1616
/**
@@ -56,7 +56,7 @@ class Guard implements GuardContract
5656
/**
5757
* The token manager implementation.
5858
*
59-
* @var \Kino\Auth\JWT\Contracts\Token\Manager
59+
* @var \Codecasts\Auth\JWT\Contracts\Token\Manager
6060
*/
6161
protected $manager;
6262

@@ -97,7 +97,7 @@ class Guard implements GuardContract
9797
* @param \Illuminate\Contracts\Foundation\Application $app
9898
* @param string $name
9999
* @param \Illuminate\Contracts\Auth\UserProvider $provider
100-
* @param \Kino\Auth\JWT\Contracts\Token\Manager $manager
100+
* @param \Codecasts\Auth\JWT\Contracts\Token\Manager $manager
101101
*/
102102
public function __construct($app, $name, $provider, $manager)
103103
{
@@ -366,7 +366,7 @@ public function logout()
366366
/**
367367
* Returns the guard instance of the token manager.
368368
*
369-
* @return \Kino\Auth\JWT\Contracts\Token\Manager
369+
* @return \Codecasts\Auth\JWT\Contracts\Token\Manager
370370
*/
371371
public function manager()
372372
{

src/Auth/ServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Kino\Auth\JWT\Auth;
3+
namespace Codecasts\Auth\JWT\Auth;
44

55
use Illuminate\Contracts\Auth\UserProvider;
66
use Illuminate\Foundation\Support\Providers\AuthServiceProvider;
7-
use Kino\Auth\JWT\Contracts\Token\Manager as TokenManager;
7+
use Codecasts\Auth\JWT\Contracts\Token\Manager as TokenManager;
88
use Illuminate\Auth\AuthManager;
99

1010
/**
@@ -57,7 +57,7 @@ protected function getUserProvider($alias)
5757
/**
5858
* Get's a instance of the token manager.
5959
*
60-
* @return \Kino\Auth\JWT\Contracts\Token\Manager
60+
* @return \Codecasts\Auth\JWT\Contracts\Token\Manager
6161
*/
6262
protected function getTokenManager()
6363
{

src/Console/KeyGenerateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Kino\Auth\JWT\Console;
3+
namespace Codecasts\Auth\JWT\Console;
44

55
use Illuminate\Console\Command;
66
use Symfony\Component\Console\Helper\FormatterHelper;

src/Contracts/Auth/Guard.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Kino\Auth\JWT\Contracts\Auth;
3+
namespace Codecasts\Auth\JWT\Contracts\Auth;
44

55
use Illuminate\Contracts\Auth\Authenticatable;
66
use Illuminate\Contracts\Auth\Guard as LaravelGuard;
77
use Illuminate\Contracts\Events\Dispatcher;
8-
use Kino\Auth\JWT\Contracts\Token\Manager;
8+
use Codecasts\Auth\JWT\Contracts\Token\Manager;
99
use Symfony\Component\HttpFoundation\Request;
1010

1111
interface Guard extends LaravelGuard
@@ -16,7 +16,7 @@ interface Guard extends LaravelGuard
1616
* @param \Illuminate\Contracts\Foundation\Application $app
1717
* @param string $name
1818
* @param \Illuminate\Contracts\Auth\UserProvider $provider
19-
* @param \Kino\Auth\JWT\Contracts\Token\Manager $manager
19+
* @param \Codecasts\Auth\JWT\Contracts\Token\Manager $manager
2020
*/
2121
public function __construct($app, $name, $provider, $manager);
2222

src/Contracts/Token/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Kino\Auth\JWT\Contracts\Token;
3+
namespace Codecasts\Auth\JWT\Contracts\Token;
44

55
use \Illuminate\Cache\Repository as Cache;
66
use \Illuminate\Config\Repository as Config;

src/ServiceProvider.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<?php
22

3-
namespace Kino\Auth\JWT;
3+
namespace Codecasts\Auth\JWT;
44

55
use Illuminate\Contracts\Config\Repository;
66
use Illuminate\Routing\Events\RouteMatched;
77
use Illuminate\Support\Arr;
88
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;
9-
use Kino\Auth\JWT\Auth\Guard;
10-
use Kino\Auth\JWT\Console\KeyGenerateCommand;
11-
use Kino\Auth\JWT\Contracts;
12-
use Kino\Auth\JWT\Token\Manager;
13-
use Kino\Auth\JWT\Auth\ServiceProvider as AuthServiceProvider;
9+
use Codecasts\Auth\JWT\Auth\Guard;
10+
use Codecasts\Auth\JWT\Console\KeyGenerateCommand;
11+
use Codecasts\Auth\JWT\Contracts;
12+
use Codecasts\Auth\JWT\Token\Manager;
13+
use Codecasts\Auth\JWT\Auth\ServiceProvider as AuthServiceProvider;
1414

1515
/**
16-
* Kino JWT Auth for Laravel 5.4
16+
* Codecasts JWT Auth for Laravel 5.4
1717
*
1818
* Main Service provider.
1919
*/

src/Token/Manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22

3-
namespace Kino\Auth\JWT\Token;
3+
namespace Codecasts\Auth\JWT\Token;
44

55
use Carbon\Carbon;
66
use Illuminate\Contracts\Auth\Authenticatable;
77
use Illuminate\Config\Repository as Config;
88
use Illuminate\Cache\Repository as Cache;
99
use Illuminate\Support\Str;
10-
use Kino\Auth\JWT\Contracts\Token\Manager as ManagerContract;
10+
use Codecasts\Auth\JWT\Contracts\Token\Manager as ManagerContract;
1111
use Lcobucci\JWT\Builder;
1212
use Lcobucci\JWT\Parser;
1313
use Lcobucci\JWT\Signer\Hmac\Sha256;

0 commit comments

Comments
 (0)