Skip to content

Commit

Permalink
Nahrazení action modulu API modulem (#1036)
Browse files Browse the repository at this point in the history
* action module removal

* fixes

* rename
  • Loading branch information
jan-stanek authored Oct 4, 2023
1 parent 9aa8b61 commit 27543ea
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 28 deletions.
14 changes: 0 additions & 14 deletions app/ActionModule/Presenters/ActionBasePresenter.php

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function processForm(Form $form, stdClass $values): void
$verificationCode = substr(md5(uniqid((string) mt_rand(), true)), 0, 8);
$this->commandBus->handle(new SetSettingStringValue(Settings::SEMINAR_EMAIL_VERIFICATION_CODE, $verificationCode));

$link = $this->linkGenerator->link('Action:Mailing:verify', ['code' => $verificationCode]);
$link = $this->linkGenerator->link('Api:Mail:verify', ['code' => $verificationCode]);

$this->mailService->sendMailFromTemplate(
null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace App\ActionModule\Presenters;
namespace App\ApiModule\Presenters;

use App\Model\Settings\Exceptions\SettingsItemNotFoundException;
use App\Model\Settings\Queries\SettingDateValueQuery;
Expand All @@ -16,7 +16,7 @@
/**
* Presenter obsluhující načítání plateb z API banky.
*/
class BankPresenter extends ActionBasePresenter
class BankPresenter extends ApiBasePresenter
{
#[Inject]
public QueryBus $queryBus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace App\ActionModule\Presenters;
namespace App\ApiModule\Presenters;

use App\Model\Acl\Permission;
use App\Model\Acl\SrsResource;
Expand All @@ -18,7 +18,7 @@
/**
* Presenter obsluhující potvrzení změny e-mailu.
*/
class MailingPresenter extends ActionBasePresenter
class MailPresenter extends ApiBasePresenter
{
#[Inject]
public CommandBus $commandBus;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace App\ActionModule\Presenters;
namespace App\ApiModule\Presenters;

use App\Model\Acl\Repositories\RoleRepository;
use App\Model\Acl\Role;
Expand All @@ -27,7 +27,7 @@
/**
* Presenter obsluhující kontrolu splatnosti přihlášek.
*/
class MaturityPresenter extends ActionBasePresenter
class MaturityPresenter extends ApiBasePresenter
{
#[Inject]
public QueryBus $queryBus;
Expand Down
7 changes: 0 additions & 7 deletions app/Router/RouterFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ public function createRouter(): RouteList
'id' => null,
]);

$router->addRoute('action/<presenter>/<action>[/<id>]', [
'module' => 'Action',
'presenter' => null,
'action' => null,
'id' => null,
]);

$router->addRoute('admin/cms/<presenter>/<action>[/<id>][/<area>]', [
'module' => 'Admin:Cms',
'presenter' => 'Page',
Expand Down

0 comments on commit 27543ea

Please sign in to comment.