Skip to content

Commit b145151

Browse files
OXDEV-9927 Move classes to infrastructure
1 parent 68df0d3 commit b145151

21 files changed

Lines changed: 44 additions & 28 deletions

File tree

File renamed without changes.

src/Authentication/TwoFactorAuth/DataObject/UserInterface.php renamed to src/Authentication/TwoFactorAuth/DTO/UserInterface.php

File renamed without changes.

src/Authentication/TwoFactorAuth/Infrastructure/UserFactory.php renamed to src/Authentication/TwoFactorAuth/Infrastructure/Factory/UserFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
declare(strict_types=1);
99

10-
namespace OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure;
10+
namespace OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure\Factory;
1111

1212
use OxidEsales\Eshop\Application\Model\User;
1313

src/Authentication/TwoFactorAuth/Infrastructure/UserFactoryInterface.php renamed to src/Authentication/TwoFactorAuth/Infrastructure/Factory/UserFactoryInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* See LICENSE file for license details.
66
*/
77

8-
namespace OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure;
8+
namespace OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure\Factory;
99

1010
use OxidEsales\Eshop\Application\Model\User;
1111

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
services:
2+
_defaults:
3+
autowire: true
4+
public: false
5+
6+
OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure\Factory\UserFactoryInterface:
7+
class: OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure\Factory\UserFactory

src/Authentication/TwoFactorAuth/Repository/UserRepository.php renamed to src/Authentication/TwoFactorAuth/Infrastructure/Repository/UserRepository.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77

88
declare(strict_types=1);
99

10-
namespace OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Repository;
10+
namespace OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure\Repository;
1111

12-
use OxidEsales\Eshop\Application\Model\User as UserModel;
13-
use OxidEsales\SecurityModule\Authentication\OAuth2\DataObject\UserInterface;
14-
use OxidEsales\SecurityModule\Authentication\OAuth2\Exception\UserNotFoundException;
15-
use OxidEsales\SecurityModule\Authentication\OAuth2\Infrastructure\UserFactoryInterface;
12+
use OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure\Factory\UserFactoryInterface;
1613

1714
class UserRepository implements UserRepositoryInterface
1815
{

src/Authentication/TwoFactorAuth/Repository/UserRepositoryInterface.php renamed to src/Authentication/TwoFactorAuth/Infrastructure/Repository/UserRepositoryInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
* See LICENSE file for license details.
66
*/
77

8-
namespace OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Repository;
9-
10-
use OxidEsales\SecurityModule\Authentication\OAuth2\DataObject\UserInterface;
8+
namespace OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure\Repository;
119

1210
interface UserRepositoryInterface
1311
{
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
services:
2+
_defaults:
3+
autowire: true
4+
public: false
5+
6+
OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure\Repository\UserRepositoryInterface:
7+
class: OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Infrastructure\Repository\UserRepository
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
imports:
2+
- { resource: Factory/services.yaml }
3+
- { resource: Repository/services.yaml }

src/Authentication/TwoFactorAuth/Service/AuthorizeService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
namespace OxidEsales\SecurityModule\Authentication\TwoFactorAuth\Service;
1111

12-
class AuthorizeService
12+
class AuthorizeService implements AuthorizeServiceInterface
1313
{
1414
public function validate()
1515
{

0 commit comments

Comments
 (0)