Renamed domain ActionManagement to Action

This commit is contained in:
Kevin Frantz 2019-05-30 16:03:44 +02:00
parent d2b0cba30b
commit 123df1147a
36 changed files with 112 additions and 112 deletions

View File

@ -52,8 +52,8 @@ services:
public: true
Infinito\Domain\SecureManagement\SecureRequestedRightCheckerService:
public: true
Infinito\Domain\ActionManagement\ActionService:
Infinito\Domain\Action\ActionService:
public: true
Infinito\Domain\ActionManagement\ActionHandlerService:
Infinito\Domain\Action\ActionHandlerService:
public: true

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement;
namespace Infinito\Domain\Action;
use Infinito\Entity\EntityInterface;
use Infinito\Exception\Validation\FormInvalidException;
@ -41,7 +41,7 @@ abstract class AbstractAction extends AbstractActionConstructor implements Actio
*
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\ActionInterface::execute()
* @see \Infinito\Domain\Action\ActionInterface::execute()
*/
final public function execute(): ?EntityInterface
{

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement;
namespace Infinito\Domain\Action;
/**
* This class just containes the constructor

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement;
namespace Infinito\Domain\Action;
use Infinito\Domain\RequestManagement\Action\RequestedActionInterface;
use Infinito\Domain\RepositoryManagement\LayerRepositoryFactoryServiceInterface;
@ -64,7 +64,7 @@ final class ActionDependenciesDAOService implements ActionDependenciesDAOService
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface::getRequestedAction()
* @see \Infinito\Domain\Action\ActionDependenciesDAOServiceInterface::getRequestedAction()
*/
public function getRequestedAction(): RequestedActionInterface
{
@ -74,7 +74,7 @@ final class ActionDependenciesDAOService implements ActionDependenciesDAOService
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface::isRequestedActionSecure()
* @see \Infinito\Domain\Action\ActionDependenciesDAOServiceInterface::isRequestedActionSecure()
*/
public function isRequestedActionSecure(): bool
{
@ -92,7 +92,7 @@ final class ActionDependenciesDAOService implements ActionDependenciesDAOService
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface::getRequest()
* @see \Infinito\Domain\Action\ActionDependenciesDAOServiceInterface::getRequest()
*/
public function getRequest(): Request
{
@ -102,7 +102,7 @@ final class ActionDependenciesDAOService implements ActionDependenciesDAOService
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface::getRepository()
* @see \Infinito\Domain\Action\ActionDependenciesDAOServiceInterface::getRepository()
*/
public function getRepository(): RepositoryInterface
{
@ -114,7 +114,7 @@ final class ActionDependenciesDAOService implements ActionDependenciesDAOService
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface::getEntityManager()
* @see \Infinito\Domain\Action\ActionDependenciesDAOServiceInterface::getEntityManager()
*/
public function getEntityManager(): EntityManagerInterface
{

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement;
namespace Infinito\Domain\Action;
use Infinito\Domain\RequestManagement\Action\RequestedActionInterface;
use Symfony\Component\HttpFoundation\Request;

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement;
namespace Infinito\Domain\Action;
use Infinito\Exception\NoDefaultClassException;
@ -12,7 +12,7 @@ final class ActionFactoryService extends AbstractActionConstructor implements Ac
/**
* @var string Namespace in which the actions will be found
*/
private const BASE_NAMESPACE = 'Infinito\\Domain\\ActionManagement\\';
private const BASE_NAMESPACE = 'Infinito\\Domain\\Action\\';
/**
* @var string Suffix for action classes
@ -73,7 +73,7 @@ final class ActionFactoryService extends AbstractActionConstructor implements Ac
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\ActionFactoryServiceInterface::create()
* @see \Infinito\Domain\Action\ActionFactoryServiceInterface::create()
*/
public function create(): ActionInterface
{

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement;
namespace Infinito\Domain\Action;
/**
* Offers a function to create an action object by the RequestedActionService.

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement;
namespace Infinito\Domain\Action;
use Infinito\Entity\EntityInterface;
@ -25,7 +25,7 @@ final class ActionHandlerService implements ActionHandlerServiceInterface
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\ActionHandlerServiceInterface::handle()
* @see \Infinito\Domain\Action\ActionHandlerServiceInterface::handle()
*/
public function handle(): ?EntityInterface
{

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement;
namespace Infinito\Domain\Action;
use Infinito\Entity\EntityInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement;
namespace Infinito\Domain\Action;
use Infinito\Entity\EntityInterface;

View File

@ -1,8 +1,8 @@
<?php
namespace Infinito\Domain\ActionManagement\Create;
namespace Infinito\Domain\Action\Create;
use Infinito\Domain\ActionManagement\AbstractAction;
use Infinito\Domain\Action\AbstractAction;
/**
* @author kevinfrantz
@ -13,7 +13,7 @@ abstract class AbstractCreateAction extends AbstractAction implements CreateActi
* In general everybody should be allowed to create everything!
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::isSecure()
* @see \Infinito\Domain\Action\AbstractAction::isSecure()
*/
protected function isSecure(): bool
{

View File

@ -0,0 +1,12 @@
<?php
namespace Infinito\Domain\Action\Create;
use Infinito\Domain\Action\ActionInterface;
/**
* @author kevinfrantz
*/
interface CreateActionInterface extends ActionInterface
{
}

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement\Create;
namespace Infinito\Domain\Action\Create;
use Infinito\Domain\SourceManagement\SourceClassInformationService;
use Infinito\Entity\Source\AbstractSource;
@ -53,7 +53,7 @@ final class CreateSourceAction extends AbstractCreateAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::prepare()
* @see \Infinito\Domain\Action\AbstractAction::prepare()
*/
protected function prepare(): void
{
@ -66,7 +66,7 @@ final class CreateSourceAction extends AbstractCreateAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::isValid()
* @see \Infinito\Domain\Action\AbstractAction::isValid()
*/
protected function isValid(): bool
{
@ -81,7 +81,7 @@ final class CreateSourceAction extends AbstractCreateAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::proccess()
* @see \Infinito\Domain\Action\AbstractAction::proccess()
*/
protected function proccess()
{

View File

@ -1,8 +1,8 @@
<?php
namespace Infinito\Domain\ActionManagement\Delete;
namespace Infinito\Domain\Action\Delete;
use Infinito\Domain\ActionManagement\AbstractAction;
use Infinito\Domain\Action\AbstractAction;
/**
* @author kevinfrantz
@ -13,7 +13,7 @@ final class DeleteAction extends AbstractAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::isSecure()
* @see \Infinito\Domain\Action\AbstractAction::isSecure()
*/
protected function isSecure(): bool
{
@ -24,7 +24,7 @@ final class DeleteAction extends AbstractAction
* @todo Implement!
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::isValid()
* @see \Infinito\Domain\Action\AbstractAction::isValid()
*/
protected function isValid(): bool
{
@ -34,7 +34,7 @@ final class DeleteAction extends AbstractAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::proccess()
* @see \Infinito\Domain\Action\AbstractAction::proccess()
*/
protected function proccess()
{

View File

@ -0,0 +1,12 @@
<?php
namespace Infinito\Domain\Action\Execute;
use Infinito\Domain\Action\AbstractAction;
/**
* @author kevinfrantz
*/
abstract class AbstractExecuteAction extends AbstractAction
{
}

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement\Execute;
namespace Infinito\Domain\Action\Execute;
/**
* @author kevinfrantz
@ -10,7 +10,7 @@ final class ExecuteAction extends AbstractExecuteAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::isSecure()
* @see \Infinito\Domain\Action\AbstractAction::isSecure()
*/
protected function isSecure(): bool
{
@ -19,7 +19,7 @@ final class ExecuteAction extends AbstractExecuteAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::isValid()
* @see \Infinito\Domain\Action\AbstractAction::isValid()
*/
protected function isValid(): bool
{
@ -28,7 +28,7 @@ final class ExecuteAction extends AbstractExecuteAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::proccess()
* @see \Infinito\Domain\Action\AbstractAction::proccess()
*/
protected function proccess()
{

View File

@ -1,3 +1,3 @@
# ActionManagement
# Action
## Brainstorming
![Brainstorming Class UML Diagram](.meta/uml-class-brainstorming.svg)

View File

@ -1,8 +1,8 @@
<?php
namespace Infinito\Domain\ActionManagement\Read;
namespace Infinito\Domain\Action\Read;
use Infinito\Domain\ActionManagement\AbstractAction;
use Infinito\Domain\Action\AbstractAction;
/**
* @author kevinfrantz
@ -12,7 +12,7 @@ final class ReadAction extends AbstractAction implements ReadActionInterface
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::isSecure()
* @see \Infinito\Domain\Action\AbstractAction::isSecure()
*/
protected function isSecure(): bool
{
@ -23,7 +23,7 @@ final class ReadAction extends AbstractAction implements ReadActionInterface
* @todo Implement!
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::isValid()
* @see \Infinito\Domain\Action\AbstractAction::isValid()
*/
protected function isValid(): bool
{
@ -33,7 +33,7 @@ final class ReadAction extends AbstractAction implements ReadActionInterface
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::proccess()
* @see \Infinito\Domain\Action\AbstractAction::proccess()
*/
protected function proccess()
{

View File

@ -1,8 +1,8 @@
<?php
namespace Infinito\Domain\ActionManagement\Read;
namespace Infinito\Domain\Action\Read;
use Infinito\Domain\ActionManagement\ActionInterface;
use Infinito\Domain\Action\ActionInterface;
/**
* Needed for mocking with PHPUnit!

View File

@ -0,0 +1,12 @@
<?php
namespace Infinito\Domain\Action\Update;
use Infinito\Domain\Action\AbstractAction;
/**
* @author kevinfrantz
*/
abstract class AbstractUpdateAction extends AbstractAction
{
}

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\ActionManagement\Update;
namespace Infinito\Domain\Action\Update;
/**
* @author kevinfrantz
@ -10,7 +10,7 @@ final class UpdateSourceAction extends AbstractUpdateAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::isSecure()
* @see \Infinito\Domain\Action\AbstractAction::isSecure()
*/
protected function isSecure(): bool
{
@ -19,7 +19,7 @@ final class UpdateSourceAction extends AbstractUpdateAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::isValid()
* @see \Infinito\Domain\Action\AbstractAction::isValid()
*/
protected function isValid(): bool
{
@ -28,7 +28,7 @@ final class UpdateSourceAction extends AbstractUpdateAction
/**
* {@inheritdoc}
*
* @see \Infinito\Domain\ActionManagement\AbstractAction::proccess()
* @see \Infinito\Domain\Action\AbstractAction::proccess()
*/
protected function proccess()
{

View File

@ -1,12 +0,0 @@
<?php
namespace Infinito\Domain\ActionManagement\Create;
use Infinito\Domain\ActionManagement\ActionInterface;
/**
* @author kevinfrantz
*/
interface CreateActionInterface extends ActionInterface
{
}

View File

@ -1,12 +0,0 @@
<?php
namespace Infinito\Domain\ActionManagement\Execute;
use Infinito\Domain\ActionManagement\AbstractAction;
/**
* @author kevinfrantz
*/
abstract class AbstractExecuteAction extends AbstractAction
{
}

View File

@ -1,12 +0,0 @@
<?php
namespace Infinito\Domain\ActionManagement\Update;
use Infinito\Domain\ActionManagement\AbstractAction;
/**
* @author kevinfrantz
*/
abstract class AbstractUpdateAction extends AbstractAction
{
}

View File

@ -4,7 +4,7 @@ namespace Infinito\Domain\ProcessManagement;
use Infinito\Domain\RequestManagement\Action\RequestedActionServiceInterface;
use Infinito\Domain\SecureManagement\SecureRequestedRightCheckerServiceInterface;
use Infinito\Domain\ActionManagement\ActionHandlerServiceInterface;
use Infinito\Domain\Action\ActionHandlerServiceInterface;
use Infinito\Entity\Source\Primitive\Text\TextSource;
use Infinito\Domain\DataAccessManagement\ActionsResultsDAOServiceInterface;
use Infinito\Domain\ParameterManagement\ValidGetParameterServiceInterface;

View File

@ -3,7 +3,7 @@
namespace Infinito\Domain\ViewManagement;
use FOS\RestBundle\View\View;
use Infinito\Domain\ActionManagement\ActionFactoryServiceInterface;
use Infinito\Domain\Action\ActionFactoryServiceInterface;
use Infinito\Domain\TemplateManagement\TemplateNameServiceInterface;
use Infinito\Domain\ParameterManagement\ValidGetParameterServiceInterface;
use Infinito\Domain\ParameterManagement\Parameter\FrameParameter;

View File

@ -1,9 +1,9 @@
<?php
namespace tests\Integration\Domain\ActionManagement;
namespace tests\Integration\Domain\Action;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Infinito\Domain\ActionManagement\ActionHandlerServiceInterface;
use Infinito\Domain\Action\ActionHandlerServiceInterface;
use Infinito\Domain\RequestManagement\Action\RequestedActionServiceInterface;
use Infinito\Domain\FixtureManagement\FixtureSource\ImpressumFixtureSource;
use Infinito\Entity\Source\SourceInterface;

View File

@ -1,9 +1,9 @@
<?php
namespace tests\Integration\Domain\ActionManagement;
namespace tests\Integration\Domain\Action;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface;
use Doctrine\ORM\EntityManagerInterface;
/**

View File

@ -1,11 +1,11 @@
<?php
namespace Tests\Integration\Domain\ActionManagement\Create;
namespace Tests\Integration\Domain\Action\Create;
use Infinito\Domain\ActionManagement\Create\CreateSourceAction;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOService;
use Infinito\Domain\ActionManagement\Create\CreateActionInterface;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
use Infinito\Domain\Action\Create\CreateSourceAction;
use Infinito\Domain\Action\ActionDependenciesDAOService;
use Infinito\Domain\Action\Create\CreateActionInterface;
use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Infinito\Entity\Source\PureSourceInterface;
use Infinito\Domain\RequestManagement\Action\RequestedActionService;

View File

@ -1,11 +1,11 @@
<?php
namespace tests\Unit\Domain\ActionManagement;
namespace tests\Unit\Domain\Action;
use PHPUnit\Framework\TestCase;
use Infinito\Domain\ActionManagement\ActionFactoryService;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
use Infinito\Domain\ActionManagement\ActionInterface;
use Infinito\Domain\Action\ActionFactoryService;
use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface;
use Infinito\Domain\Action\ActionInterface;
use Infinito\Domain\RequestManagement\Action\RequestedAction;
use Infinito\Domain\RequestManagement\Right\RequestedRight;
use Infinito\Domain\LayerManagement\LayerActionMap;

View File

@ -1,14 +1,14 @@
<?php
namespace tests\Unit\Domain\ActionManagement;
namespace tests\Unit\Domain\Action;
use PHPUnit\Framework\TestCase;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOService;
use Infinito\Domain\Action\ActionDependenciesDAOService;
use Infinito\Domain\RequestManagement\Action\RequestedActionInterface;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Infinito\Domain\RepositoryManagement\LayerRepositoryFactoryServiceInterface;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface;
use Infinito\Repository\RepositoryInterface;
use Symfony\Component\HttpFoundation\Request;
use Infinito\Domain\RequestManagement\Entity\RequestedEntityInterface;

View File

@ -1,15 +1,15 @@
<?php
namespace tests\Unit\Domain\ActionManagement\Create;
namespace tests\Unit\Domain\Action\Create;
use PHPUnit\Framework\TestCase;
use Infinito\Domain\ActionManagement\Create\CreateSourceAction;
use Infinito\Domain\Action\Create\CreateSourceAction;
use Symfony\Component\HttpFoundation\Request;
use Infinito\Entity\Source\PureSource;
use Infinito\Attribut\ClassAttributInterface;
use Infinito\Attribut\SlugAttributInterface;
use Infinito\Entity\Source\PureSourceInterface;
use Infinito\Domain\ActionManagement\ActionService;
use Infinito\Domain\Action\ActionService;
use Doctrine\ORM\EntityManagerInterface;
use Infinito\Domain\RequestManagement\Action\RequestedActionServiceInterface;
use Infinito\Domain\SecureManagement\SecureRequestedRightCheckerServiceInterface;

View File

@ -1,11 +1,11 @@
<?php
namespace tests\Unit\Domain\ActionManagement\Read;
namespace tests\Unit\Domain\Action\Read;
use PHPUnit\Framework\TestCase;
use Infinito\Domain\ActionManagement\ActionInterface;
use Infinito\Domain\ActionManagement\AbstractAction;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
use Infinito\Domain\Action\ActionInterface;
use Infinito\Domain\Action\AbstractAction;
use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface;
use PHPUnit\Framework\MockObject\MockObject;
use Infinito\Exception\Validation\FormInvalidException;

View File

@ -4,9 +4,9 @@ namespace tests\Unit\Domain\SecureCRUDManagement\CRUD\Read;
use Doctrine\ORM\EntityManagerInterface;
use PHPUnit\Framework\TestCase;
use Infinito\Domain\ActionManagement\Read\ReadAction;
use Infinito\Domain\ActionManagement\ActionDependenciesDAOServiceInterface;
use Infinito\Domain\ActionManagement\Read\ReadActionInterface;
use Infinito\Domain\Action\Read\ReadAction;
use Infinito\Domain\Action\ActionDependenciesDAOServiceInterface;
use Infinito\Domain\Action\Read\ReadActionInterface;
use Infinito\Domain\RequestManagement\Action\RequestedActionInterface;
use Infinito\Domain\RequestManagement\Entity\RequestedEntityInterface;
use Infinito\Entity\Source\SourceInterface;