Skip to content

Commit

Permalink
changes namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Sakovich committed Mar 19, 2019
1 parent 515368b commit 4d2ea83
Show file tree
Hide file tree
Showing 13 changed files with 28 additions and 28 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ As the first step, you need to implement `SocialUserResolverInterface`:

namespace App\Resolvers;

use Coderello\LaravelPassportSocialGrant\Resolvers\SocialUserResolverInterface;
use Coderello\SocialGrant\Resolvers\SocialUserResolverInterface;
use Illuminate\Contracts\Auth\Authenticatable;
use Laravel\Socialite\Facades\Socialite;

Expand Down Expand Up @@ -56,7 +56,7 @@ You can do it by adding the appropriate key-value pair to `$bindings` property i
namespace App\Providers;

use App\Resolvers\SocialUserResolver;
use Coderello\LaravelPassportSocialGrant\Resolvers\SocialUserResolverInterface;
use Coderello\SocialGrant\Resolvers\SocialUserResolverInterface;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
},
"autoload": {
"psr-4": {
"Coderello\\LaravelPassportSocialGrant\\": "src/"
"Coderello\\SocialGrant\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Coderello\\LaravelPassportSocialGrant\\Tests\\": "tests/"
"Coderello\\SocialGrant\\Tests\\": "tests/"
}
},
"scripts": {
Expand All @@ -34,7 +34,7 @@
"extra": {
"laravel": {
"providers": [
"Coderello\\LaravelPassportSocialGrant\\Providers\\SocialGrantServiceProvider"
"Coderello\\SocialGrant\\Providers\\SocialGrantServiceProvider"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Grants/SocialGrant.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Grants;
namespace Coderello\SocialGrant\Grants;

use League\OAuth2\Server\RequestEvent;
use Psr\Http\Message\ServerRequestInterface;
Expand All @@ -9,7 +9,7 @@
use League\OAuth2\Server\Exception\OAuthServerException;
use League\OAuth2\Server\ResponseTypes\ResponseTypeInterface;
use League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface;
use Coderello\LaravelPassportSocialGrant\Resolvers\SocialUserResolverInterface;
use Coderello\SocialGrant\Resolvers\SocialUserResolverInterface;

class SocialGrant extends AbstractGrant
{
Expand Down
6 changes: 3 additions & 3 deletions src/Providers/SocialGrantServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Providers;
namespace Coderello\SocialGrant\Providers;

use Laravel\Passport\Passport;
use Illuminate\Support\ServiceProvider;
use League\OAuth2\Server\AuthorizationServer;
use Laravel\Passport\Bridge\RefreshTokenRepository;
use Coderello\LaravelPassportSocialGrant\Grants\SocialGrant;
use Coderello\LaravelPassportSocialGrant\Resolvers\SocialUserResolverInterface;
use Coderello\SocialGrant\Grants\SocialGrant;
use Coderello\SocialGrant\Resolvers\SocialUserResolverInterface;

class SocialGrantServiceProvider extends ServiceProvider
{
Expand Down
2 changes: 1 addition & 1 deletion src/Resolvers/SocialUserResolverInterface.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Resolvers;
namespace Coderello\SocialGrant\Resolvers;

use Illuminate\Contracts\Auth\Authenticatable;

Expand Down
4 changes: 2 additions & 2 deletions tests/AbstractTestCase.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Tests;
namespace Coderello\SocialGrant\Tests;

use Orchestra\Testbench\TestCase as OrchestraTestCase;
use Coderello\LaravelPassportSocialGrant\Providers\SocialGrantServiceProvider;
use Coderello\SocialGrant\Providers\SocialGrantServiceProvider;

abstract class AbstractTestCase extends OrchestraTestCase
{
Expand Down
18 changes: 9 additions & 9 deletions tests/SocialGrantTest.php
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Tests;
namespace Coderello\SocialGrant\Tests;

use Zend\Diactoros\ServerRequest;
use Coderello\LaravelPassportSocialGrant\Tests\Stubs\User;
use Coderello\SocialGrant\Tests\Stubs\User;
use League\OAuth2\Server\Exception\OAuthServerException;
use Coderello\LaravelPassportSocialGrant\Grants\SocialGrant;
use Coderello\SocialGrant\Grants\SocialGrant;
use League\OAuth2\Server\Entities\AccessTokenEntityInterface;
use League\OAuth2\Server\Entities\RefreshTokenEntityInterface;
use Coderello\LaravelPassportSocialGrant\Tests\Stubs\ScopeEntity;
use Coderello\SocialGrant\Tests\Stubs\ScopeEntity;
use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;
use Coderello\LaravelPassportSocialGrant\Tests\Stubs\ClientEntity;
use Coderello\LaravelPassportSocialGrant\Tests\Stubs\ResponseType;
use Coderello\SocialGrant\Tests\Stubs\ClientEntity;
use Coderello\SocialGrant\Tests\Stubs\ResponseType;
use League\OAuth2\Server\Repositories\ClientRepositoryInterface;
use Coderello\LaravelPassportSocialGrant\Tests\Stubs\AccessTokenEntity;
use Coderello\SocialGrant\Tests\Stubs\AccessTokenEntity;
use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface;
use Coderello\LaravelPassportSocialGrant\Tests\Stubs\RefreshTokenEntity;
use Coderello\SocialGrant\Tests\Stubs\RefreshTokenEntity;
use League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface;
use Coderello\LaravelPassportSocialGrant\Resolvers\SocialUserResolverInterface;
use Coderello\SocialGrant\Resolvers\SocialUserResolverInterface;

class SocialGrantTest extends AbstractTestCase
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/AccessTokenEntity.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Tests\Stubs;
namespace Coderello\SocialGrant\Tests\Stubs;

use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\AccessTokenTrait;
Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/ClientEntity.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Tests\Stubs;
namespace Coderello\SocialGrant\Tests\Stubs;

use League\OAuth2\Server\Entities\Traits\ClientTrait;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/RefreshTokenEntity.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Tests\Stubs;
namespace Coderello\SocialGrant\Tests\Stubs;

use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\Traits\RefreshTokenTrait;
Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/ResponseType.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Tests\Stubs;
namespace Coderello\SocialGrant\Tests\Stubs;

use Zend\Diactoros\Response;
use Psr\Http\Message\ResponseInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/ScopeEntity.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Tests\Stubs;
namespace Coderello\SocialGrant\Tests\Stubs;

use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\ScopeEntityInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/Stubs/User.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Coderello\LaravelPassportSocialGrant\Tests\Stubs;
namespace Coderello\SocialGrant\Tests\Stubs;

use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Auth\Authenticatable as AuthenticatableTrait;
Expand Down

0 comments on commit 4d2ea83

Please sign in to comment.