Skip to content

Commit 8fbba9d

Browse files
committed
update namespace
1 parent 85e75f5 commit 8fbba9d

12 files changed

+27
-27
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ Installation
1515
Installation using composer:
1616

1717
```sh
18-
composer require designmynight/laravel-mongodb-passport
18+
composer require sysvale/laravel-mongodb-passport
1919
```
2020

21-
You need to have your `App\User` class extend `DesignMyNight\Mongodb\Auth\User.php` instead of the default `Illuminate\Foundation\Auth\User`. This user class extends larvel-mongodb eloquent user as well as adding all the standard and required authentication and laravel passport traits.
21+
You need to have your `App\User` class extend `Sysvale\Mongodb\Auth\User.php` instead of the default `Illuminate\Foundation\Auth\User`. This user class extends larvel-mongodb eloquent user as well as adding all the standard and required authentication and laravel passport traits.
2222

2323
```php
2424
<?php
2525

2626
namespace App;
2727

2828
use Illuminate\Notifications\Notifiable;
29-
use DesignMyNight\Mongodb\Auth\User as Authenticatable;
29+
use Sysvale\Mongodb\Auth\User as Authenticatable;
3030

3131
class User extends Authenticatable
3232
{
@@ -41,17 +41,17 @@ class User extends Authenticatable
4141
5.5.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
4242
5.6.x | 4.0.x, 5.0.x, 6.0.x, 7.0.x | 1.1.x
4343
6.x | 4.0.x, 5.0.x, 6.0.x, 7.x, 8.x| 1.2.x
44-
44+
4545
And add the service provider in `config/app.php`:
4646

4747
```php
48-
DesignMyNight\Mongodb\MongodbPassportServiceProvider::class,
48+
Sysvale\Mongodb\MongodbPassportServiceProvider::class,
4949
```
5050

5151
For usage with [Lumen](http://lumen.laravel.com), add the service provider in `bootstrap/app.php`.
5252

5353
```php
54-
$app->register(DesignMyNight\Mongodb\MongodbPassportServiceProvider::class);
54+
$app->register(Sysvale\Mongodb\MongodbPassportServiceProvider::class);
5555
```
5656

5757
The service provider will overide the default laravel passport models in order to use mongodb's implementation of eloquent. There is no need to register any additional classes or add any additional configuration other than those outlined in [Laravel Passport](https://github.com/laravel/passport) and [MongoDB](https://github.com/jenssegers/laravel-mongodb).

src/Auth/User.php

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

3-
namespace DesignMyNight\Mongodb\Auth;
3+
namespace Sysvale\Mongodb\Auth;
44

55
use Illuminate\Auth\Authenticatable;
66
use Illuminate\Auth\Passwords\CanResetPassword;

src/Console/ClientCommand.php

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

3-
namespace DesignMyNight\Mongodb\Console;
3+
namespace Sysvale\Mongodb\Console;
44

5-
use DesignMyNight\Mongodb\Passport\Client;
5+
use Sysvale\Mongodb\Passport\Client;
66
use Laravel\Passport\ClientRepository;
77
use Laravel\Passport\Console\ClientCommand as PassportClientCommand;
88

src/MongodbPassportServiceProvider.php

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

3-
namespace DesignMyNight\Mongodb;
3+
namespace Sysvale\Mongodb;
44

55
use Illuminate\Support\ServiceProvider;
6-
use DesignMyNight\Mongodb\Passport\AuthCode;
7-
use DesignMyNight\Mongodb\Console\ClientCommand;
8-
use DesignMyNight\Mongodb\Passport\Bridge\RefreshTokenRepository;
9-
use DesignMyNight\Mongodb\Passport\Client;
10-
use DesignMyNight\Mongodb\Passport\PersonalAccessClient;
11-
use DesignMyNight\Mongodb\Passport\Token;
6+
use Sysvale\Mongodb\Passport\AuthCode;
7+
use Sysvale\Mongodb\Console\ClientCommand;
8+
use Sysvale\Mongodb\Passport\Bridge\RefreshTokenRepository;
9+
use Sysvale\Mongodb\Passport\Client;
10+
use Sysvale\Mongodb\Passport\PersonalAccessClient;
11+
use Sysvale\Mongodb\Passport\Token;
1212
use Laravel\Passport\Bridge\RefreshTokenRepository as PassportRefreshTokenRepository;
1313
use Laravel\Passport\Console\ClientCommand as PassportClientCommand;
1414
use Laravel\Passport\Passport;

src/Passport/AuthCode.php

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

3-
namespace DesignMyNight\Mongodb\Passport;
3+
namespace Sysvale\Mongodb\Passport;
44

55
use Jenssegers\Mongodb\Eloquent\Model;
66

src/Passport/Bridge/RefreshToken.php

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

3-
namespace DesignMyNight\Mongodb\Passport\Bridge;
3+
namespace Sysvale\Mongodb\Passport\Bridge;
44

55
use Jenssegers\Mongodb\Eloquent\Model;
66
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
@@ -9,7 +9,7 @@
99

1010
/**
1111
* Class RefreshToken
12-
* @package DesignMyNight\Mongodb\Passport\Bridge
12+
* @package Sysvale\Mongodb\Passport\Bridge
1313
*/
1414
class RefreshToken extends Model implements RefreshTokenEntityInterface
1515
{

src/Passport/Bridge/RefreshTokenRepository.php

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

3-
namespace DesignMyNight\Mongodb\Passport\Bridge;
3+
namespace Sysvale\Mongodb\Passport\Bridge;
44

55
use Laravel\Passport\Bridge\RefreshTokenRepository as BaseRefreshTokenRepository;
66
use Laravel\Passport\Events\RefreshTokenCreated;

src/Passport/Client.php

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

3-
namespace DesignMyNight\Mongodb\Passport;
3+
namespace Sysvale\Mongodb\Passport;
44

55
use Jenssegers\Mongodb\Eloquent\Model;
66

@@ -79,7 +79,7 @@ public function skipsAuthorization()
7979
{
8080
return false;
8181
}
82-
82+
8383
/**
8484
* Determine if the client is a confidential client.
8585
*

src/Passport/PersonalAccessClient.php

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

3-
namespace DesignMyNight\Mongodb\Passport;
3+
namespace Sysvale\Mongodb\Passport;
44

55
use Jenssegers\Mongodb\Eloquent\Model;
66

src/Passport/PersonalAccessTokenFactory.php

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

3-
namespace DesignMyNight\Mongodb\Passport;
3+
namespace Sysvale\Mongodb\Passport;
44

55
use Zend\Diactoros\Response;
66
use Zend\Diactoros\ServerRequest;

src/Passport/RefreshToken.php

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

3-
namespace DesignMyNight\Mongodb\Passport;
3+
namespace Sysvale\Mongodb\Passport;
44

55
use Jenssegers\Mongodb\Eloquent\Model;
66

src/Passport/Token.php

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

3-
namespace DesignMyNight\Mongodb\Passport;
3+
namespace Sysvale\Mongodb\Passport;
44

55
use Jenssegers\Mongodb\Eloquent\Model;
66

0 commit comments

Comments
 (0)