Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit e0b0f4e

Browse files
committed
Removed Basic HTTP authentication adapter
Extracted to its own component.
1 parent d8a66d6 commit e0b0f4e

File tree

5 files changed

+4
-316
lines changed

5 files changed

+4
-316
lines changed

src/Adapter/BasicAccess.php

Lines changed: 0 additions & 77 deletions
This file was deleted.

src/Adapter/BasicAccessFactory.php

Lines changed: 0 additions & 42 deletions
This file was deleted.

src/ConfigProvider.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,13 @@ public function getDependencies() : array
2727
{
2828
return [
2929
'aliases' => [
30-
// Change the alias values for Authentication adapter and
31-
// UserRepository adapter
32-
AuthenticationInterface::class => Adapter\BasicAccess::class,
33-
UserRepositoryInterface::class => UserRepository\Htpasswd::class
30+
// Provide an alias for the AuthenticationInterface based on the adapter you are using.
31+
// AuthenticationInterface::class => Basic\BasicAccess::class,
32+
// Provide an alias for the UserRepository adapter based on your application needs.
33+
// UserRepositoryInterface::class => UserRepository\Htpasswd::class
3434
],
3535
'factories' => [
3636
AuthenticationMiddleware::class => AuthenticationMiddlewareFactory::class,
37-
Adapter\BasicAccess::class => Adapter\BasicAccessFactory::class,
38-
Adapter\PhpSession::class => Adapter\PhpSessionFactory::class,
3937
Adapter\ZendAuthentication::class => Adapter\ZendAuthenticationFactory::class,
4038
UserRepository\Htpasswd::class => UserRepository\HtpasswdFactory::class,
4139
UserRepository\PdoDatabase::class => UserRepository\PdoDatabaseFactory::class

test/Adapter/BasicAccessFactoryTest.php

Lines changed: 0 additions & 72 deletions
This file was deleted.

test/Adapter/BasicAccessTest.php

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)