Skip to content

Commit a7098cb

Browse files
authored
Merge pull request #377 from dotkernel/issue376
Updated all handler names to match route names
2 parents 97e3c0d + 61841e9 commit a7098cb

File tree

55 files changed

+203
-203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+203
-203
lines changed

src/Admin/src/ConfigProvider.php

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@
1111
use Admin\Admin\Form\CreateAdminForm;
1212
use Admin\Admin\Form\DeleteAdminForm;
1313
use Admin\Admin\Form\EditAdminForm;
14-
use Admin\Admin\Handler\Account\GetAccountEditFormHandler;
15-
use Admin\Admin\Handler\Account\GetAccountLoginFormHandler;
16-
use Admin\Admin\Handler\Account\GetAccountLogoutHandler;
17-
use Admin\Admin\Handler\Account\PostAccountChangePasswordHandler;
18-
use Admin\Admin\Handler\Account\PostAccountEditHandler;
19-
use Admin\Admin\Handler\Account\PostAccountLoginHandler;
20-
use Admin\Admin\Handler\Admin\GetAdminCreateFormHandler;
21-
use Admin\Admin\Handler\Admin\GetAdminDeleteFormHandler;
22-
use Admin\Admin\Handler\Admin\GetAdminEditFormHandler;
23-
use Admin\Admin\Handler\Admin\GetAdminListHandler;
24-
use Admin\Admin\Handler\Admin\GetAdminLoginListHandler;
25-
use Admin\Admin\Handler\Admin\PostAdminCreateHandler;
26-
use Admin\Admin\Handler\Admin\PostAdminDeleteHandler;
27-
use Admin\Admin\Handler\Admin\PostAdminEditHandler;
14+
use Admin\Admin\Handler\Account\GetEditAccountFormHandler;
15+
use Admin\Admin\Handler\Account\GetLoginAccountFormHandler;
16+
use Admin\Admin\Handler\Account\GetLogoutAccountHandler;
17+
use Admin\Admin\Handler\Account\PostChangeAccountPasswordHandler;
18+
use Admin\Admin\Handler\Account\PostEditAccountHandler;
19+
use Admin\Admin\Handler\Account\PostLoginAccountHandler;
20+
use Admin\Admin\Handler\Admin\GetCreateAdminFormHandler;
21+
use Admin\Admin\Handler\Admin\GetDeleteAdminFormHandler;
22+
use Admin\Admin\Handler\Admin\GetEditAdminFormHandler;
23+
use Admin\Admin\Handler\Admin\GetListAdminHandler;
24+
use Admin\Admin\Handler\Admin\GetListAdminLoginHandler;
25+
use Admin\Admin\Handler\Admin\PostCreateAdminHandler;
26+
use Admin\Admin\Handler\Admin\PostDeleteAdminHandler;
27+
use Admin\Admin\Handler\Admin\PostEditAdminHandler;
2828
use Admin\Admin\Service\AdminLoginService;
2929
use Admin\Admin\Service\AdminLoginServiceInterface;
3030
use Admin\Admin\Service\AdminRoleService;
@@ -74,20 +74,20 @@ public function getDependencies(): array
7474
CreateAdminForm::class => [AdminRoleDelegator::class],
7575
],
7676
'factories' => [
77-
GetAdminCreateFormHandler::class => AttributedServiceFactory::class,
78-
PostAdminCreateHandler::class => AttributedServiceFactory::class,
79-
GetAdminEditFormHandler::class => AttributedServiceFactory::class,
80-
PostAdminEditHandler::class => AttributedServiceFactory::class,
81-
GetAdminDeleteFormHandler::class => AttributedServiceFactory::class,
82-
PostAdminDeleteHandler::class => AttributedServiceFactory::class,
83-
GetAdminListHandler::class => AttributedServiceFactory::class,
84-
GetAdminLoginListHandler::class => AttributedServiceFactory::class,
85-
GetAccountEditFormHandler::class => AttributedServiceFactory::class,
86-
PostAccountEditHandler::class => AttributedServiceFactory::class,
87-
PostAccountChangePasswordHandler::class => AttributedServiceFactory::class,
88-
GetAccountLoginFormHandler::class => AttributedServiceFactory::class,
89-
PostAccountLoginHandler::class => AttributedServiceFactory::class,
90-
GetAccountLogoutHandler::class => AttributedServiceFactory::class,
77+
GetCreateAdminFormHandler::class => AttributedServiceFactory::class,
78+
PostCreateAdminHandler::class => AttributedServiceFactory::class,
79+
GetEditAdminFormHandler::class => AttributedServiceFactory::class,
80+
PostEditAdminHandler::class => AttributedServiceFactory::class,
81+
GetDeleteAdminFormHandler::class => AttributedServiceFactory::class,
82+
PostDeleteAdminHandler::class => AttributedServiceFactory::class,
83+
GetListAdminHandler::class => AttributedServiceFactory::class,
84+
GetListAdminLoginHandler::class => AttributedServiceFactory::class,
85+
GetEditAccountFormHandler::class => AttributedServiceFactory::class,
86+
PostEditAccountHandler::class => AttributedServiceFactory::class,
87+
PostChangeAccountPasswordHandler::class => AttributedServiceFactory::class,
88+
GetLoginAccountFormHandler::class => AttributedServiceFactory::class,
89+
PostLoginAccountHandler::class => AttributedServiceFactory::class,
90+
GetLogoutAccountHandler::class => AttributedServiceFactory::class,
9191
AuthenticationAdapter::class => AttributedServiceFactory::class,
9292
AdminService::class => AttributedServiceFactory::class,
9393
AdminRoleService::class => AttributedServiceFactory::class,

src/Admin/src/Handler/Account/GetAccountEditFormHandler.php renamed to src/Admin/src/Handler/Account/GetEditAccountFormHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Psr\Http\Message\ServerRequestInterface;
2121
use Psr\Http\Server\RequestHandlerInterface;
2222

23-
class GetAccountEditFormHandler implements RequestHandlerInterface
23+
class GetEditAccountFormHandler implements RequestHandlerInterface
2424
{
2525
#[Inject(
2626
AdminServiceInterface::class,

src/Admin/src/Handler/Account/GetAccountLoginFormHandler.php renamed to src/Admin/src/Handler/Account/GetLoginAccountFormHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Psr\Http\Message\ServerRequestInterface;
1818
use Psr\Http\Server\RequestHandlerInterface;
1919

20-
class GetAccountLoginFormHandler implements RequestHandlerInterface
20+
class GetLoginAccountFormHandler implements RequestHandlerInterface
2121
{
2222
#[Inject(
2323
RouterInterface::class,

src/Admin/src/Handler/Account/GetAccountLogoutHandler.php renamed to src/Admin/src/Handler/Account/GetLogoutAccountHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Psr\Http\Message\ServerRequestInterface;
1313
use Psr\Http\Server\RequestHandlerInterface;
1414

15-
class GetAccountLogoutHandler implements RequestHandlerInterface
15+
class GetLogoutAccountHandler implements RequestHandlerInterface
1616
{
1717
#[Inject(
1818
RouterInterface::class,

src/Admin/src/Handler/Account/PostAccountChangePasswordHandler.php renamed to src/Admin/src/Handler/Account/PostChangeAccountPasswordHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* @phpstan-import-type ChangePasswordDataType from ChangePasswordInputFilter
3030
*/
31-
class PostAccountChangePasswordHandler implements RequestHandlerInterface
31+
class PostChangeAccountPasswordHandler implements RequestHandlerInterface
3232
{
3333
#[Inject(
3434
AdminServiceInterface::class,

src/Admin/src/Handler/Account/PostAccountEditHandler.php renamed to src/Admin/src/Handler/Account/PostEditAccountHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/**
3131
* @phpstan-import-type EditAccountDataType from EditAccountInputFilter
3232
*/
33-
class PostAccountEditHandler implements RequestHandlerInterface
33+
class PostEditAccountHandler implements RequestHandlerInterface
3434
{
3535
#[Inject(
3636
AdminServiceInterface::class,

src/Admin/src/Handler/Account/PostAccountLoginHandler.php renamed to src/Admin/src/Handler/Account/PostLoginAccountHandler.php

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

2727
use function assert;
2828

29-
class PostAccountLoginHandler implements RequestHandlerInterface
29+
class PostLoginAccountHandler implements RequestHandlerInterface
3030
{
3131
#[Inject(
3232
AdminServiceInterface::class,

src/Admin/src/Handler/Admin/GetAdminCreateFormHandler.php renamed to src/Admin/src/Handler/Admin/GetCreateAdminFormHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Psr\Http\Message\ServerRequestInterface;
1414
use Psr\Http\Server\RequestHandlerInterface;
1515

16-
class GetAdminCreateFormHandler implements RequestHandlerInterface
16+
class GetCreateAdminFormHandler implements RequestHandlerInterface
1717
{
1818
#[Inject(
1919
RouterInterface::class,

src/Admin/src/Handler/Admin/GetAdminDeleteFormHandler.php renamed to src/Admin/src/Handler/Admin/GetDeleteAdminFormHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Psr\Http\Message\ServerRequestInterface;
1919
use Psr\Http\Server\RequestHandlerInterface;
2020

21-
class GetAdminDeleteFormHandler implements RequestHandlerInterface
21+
class GetDeleteAdminFormHandler implements RequestHandlerInterface
2222
{
2323
#[Inject(
2424
AdminServiceInterface::class,

src/Admin/src/Handler/Admin/GetAdminEditFormHandler.php renamed to src/Admin/src/Handler/Admin/GetEditAdminFormHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* @phpstan-import-type SelectDataType from AbstractForm
2828
*/
29-
class GetAdminEditFormHandler implements RequestHandlerInterface
29+
class GetEditAdminFormHandler implements RequestHandlerInterface
3030
{
3131
#[Inject(
3232
AdminServiceInterface::class,

0 commit comments

Comments
 (0)