Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nahrazení action modulu API modulem #1036

Merged
merged 4 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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