Skip to content

Commit

Permalink
Rename namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed May 3, 2024
1 parent bf43aed commit d003acc
Show file tree
Hide file tree
Showing 20 changed files with 42 additions and 42 deletions.
4 changes: 2 additions & 2 deletions src/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

use Intervention\HttpAuth\Exceptions\NotSupportedException;
use Intervention\HttpAuth\Interfaces\VaultInterface;
use Intervention\HttpAuth\Vault\BasicVault;
use Intervention\HttpAuth\Vault\DigestVault;
use Intervention\HttpAuth\Vaults\BasicVault;
use Intervention\HttpAuth\Vaults\DigestVault;

class Authenticator
{
Expand Down
10 changes: 5 additions & 5 deletions src/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ class Environment implements EnvironmentInterface
* @var array<string>
*/
protected static $tokenClassnames = [
Token\PhpAuthUser::class,
Token\HttpAuthentification::class,
Token\RedirectHttpAuthorization::class,
Token\PhpAuthDigest::class,
Token\HttpAuthorization::class,
Tokens\PhpAuthUser::class,
Tokens\HttpAuthentification::class,
Tokens\RedirectHttpAuthorization::class,
Tokens\PhpAuthDigest::class,
Tokens\HttpAuthorization::class,
];

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Token;
namespace Intervention\HttpAuth\Tokens;

use Intervention\HttpAuth\Interfaces\TokenInterface;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Token;
namespace Intervention\HttpAuth\Tokens;

use Intervention\HttpAuth\Exceptions\AuthentificationException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Token;
namespace Intervention\HttpAuth\Tokens;

use Intervention\HttpAuth\Exceptions\AuthentificationException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Token;
namespace Intervention\HttpAuth\Tokens;

use Intervention\HttpAuth\Exceptions\AuthentificationException;

Expand Down
2 changes: 1 addition & 1 deletion src/Token/PhpAuthUser.php → src/Tokens/PhpAuthUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Token;
namespace Intervention\HttpAuth\Tokens;

use Intervention\HttpAuth\Exceptions\AuthentificationException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Token;
namespace Intervention\HttpAuth\Tokens;

use Intervention\HttpAuth\Exceptions\AuthentificationException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Vault;
namespace Intervention\HttpAuth\Vaults;

use Intervention\HttpAuth\Environment;
use Intervention\HttpAuth\Exceptions\AuthentificationException;
Expand Down
2 changes: 1 addition & 1 deletion src/Vault/BasicVault.php → src/Vaults/BasicVault.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Vault;
namespace Intervention\HttpAuth\Vaults;

use Intervention\HttpAuth\Directive;
use Intervention\HttpAuth\Exceptions\AuthentificationException;
Expand Down
2 changes: 1 addition & 1 deletion src/Vault/DigestVault.php → src/Vaults/DigestVault.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Vault;
namespace Intervention\HttpAuth\Vaults;

use Intervention\HttpAuth\Directive;
use Intervention\HttpAuth\Exceptions\AuthentificationException;
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/AbstractVaultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Intervention\HttpAuth\Directive;
use Intervention\HttpAuth\Interfaces\TokenInterface;
use Intervention\HttpAuth\Type;
use Intervention\HttpAuth\Vault\AbstractVault;
use Intervention\HttpAuth\Vaults\AbstractVault;
use PHPUnit\Framework\TestCase;

final class AbstractVaultTest extends TestCase
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/AuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
namespace Intervention\HttpAuth\Tests\Unit;

use Intervention\HttpAuth\Authenticator;
use Intervention\HttpAuth\Vault\BasicVault;
use Intervention\HttpAuth\Vaults\BasicVault;
use PHPUnit\Framework\TestCase;

final class AuthenticatorTest extends TestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Tests\Unit\Token;
namespace Intervention\HttpAuth\Tests\Unit\Tokens;

use Intervention\HttpAuth\Exceptions\AuthentificationException;
use Intervention\HttpAuth\Tests\TestCase;
use Intervention\HttpAuth\Token\HttpAuthentification;
use Intervention\HttpAuth\Tokens\HttpAuthentification;

final class HttpAuthentificationTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Tests\Unit\Token;
namespace Intervention\HttpAuth\Tests\Unit\Tokens;

use Intervention\HttpAuth\Exceptions\AuthentificationException;
use Intervention\HttpAuth\Tests\TestCase;
use Intervention\HttpAuth\Token\HttpAuthorization;
use Intervention\HttpAuth\Tokens\HttpAuthorization;

final class HttpAuthorizationTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Tests\Unit\Token;
namespace Intervention\HttpAuth\Tests\Unit\Tokens;

use Intervention\HttpAuth\Exceptions\AuthentificationException;
use Intervention\HttpAuth\Tests\TestCase;
use Intervention\HttpAuth\Token\PhpAuthDigest;
use Intervention\HttpAuth\Tokens\PhpAuthDigest;

final class PhpAuthDigestTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Tests\Unit\Token;
namespace Intervention\HttpAuth\Tests\Unit\Tokens;

use Intervention\HttpAuth\Exceptions\AuthentificationException;
use Intervention\HttpAuth\Tests\TestCase;
use Intervention\HttpAuth\Token\PhpAuthUser;
use Intervention\HttpAuth\Tokens\PhpAuthUser;

final class PhpAuthUserTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Tests\Unit\Token;
namespace Intervention\HttpAuth\Tests\Unit\Tokens;

use Intervention\HttpAuth\Exceptions\AuthentificationException;
use Intervention\HttpAuth\Tests\TestCase;
use Intervention\HttpAuth\Token\RedirectHttpAuthorization;
use Intervention\HttpAuth\Tokens\RedirectHttpAuthorization;

final class RedirectHttpAuthorizationTest extends TestCase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Tests\Unit\Vault;
namespace Intervention\HttpAuth\Tests\Unit\Vaults;

use Intervention\HttpAuth\Vault\BasicVault;
use Intervention\HttpAuth\Vaults\BasicVault;
use Intervention\HttpAuth\Directive;
use Intervention\HttpAuth\Exceptions\AuthentificationException;
use Intervention\HttpAuth\Token\HttpAuthentification;
use Intervention\HttpAuth\Token\HttpAuthorization;
use Intervention\HttpAuth\Token\PhpAuthDigest;
use Intervention\HttpAuth\Token\PhpAuthUser;
use Intervention\HttpAuth\Token\RedirectHttpAuthorization;
use Intervention\HttpAuth\Tokens\HttpAuthentification;
use Intervention\HttpAuth\Tokens\HttpAuthorization;
use Intervention\HttpAuth\Tokens\PhpAuthDigest;
use Intervention\HttpAuth\Tokens\PhpAuthUser;
use Intervention\HttpAuth\Tokens\RedirectHttpAuthorization;
use PHPUnit\Framework\TestCase;

final class BasicVaultTest extends TestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

declare(strict_types=1);

namespace Intervention\HttpAuth\Tests\Unit\Vault;
namespace Intervention\HttpAuth\Tests\Unit\Vaults;

use Intervention\HttpAuth\Directive;
use Intervention\HttpAuth\Exceptions\AuthentificationException;
use Intervention\HttpAuth\Token\HttpAuthentification;
use Intervention\HttpAuth\Token\HttpAuthorization;
use Intervention\HttpAuth\Token\PhpAuthDigest;
use Intervention\HttpAuth\Token\PhpAuthUser;
use Intervention\HttpAuth\Token\RedirectHttpAuthorization;
use Intervention\HttpAuth\Vault\DigestVault;
use Intervention\HttpAuth\Tokens\HttpAuthentification;
use Intervention\HttpAuth\Tokens\HttpAuthorization;
use Intervention\HttpAuth\Tokens\PhpAuthDigest;
use Intervention\HttpAuth\Tokens\PhpAuthUser;
use Intervention\HttpAuth\Tokens\RedirectHttpAuthorization;
use Intervention\HttpAuth\Vaults\DigestVault;
use PHPUnit\Framework\TestCase;

final class DigestVaultTest extends TestCase
Expand Down

0 comments on commit d003acc

Please sign in to comment.