mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Renamed domain ActionManagement to Action
This commit is contained in:
Before Width: | Height: | Size: 191 KiB After Width: | Height: | Size: 191 KiB |
@@ -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
|
||||
{
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\ActionManagement;
|
||||
namespace Infinito\Domain\Action;
|
||||
|
||||
/**
|
||||
* This class just containes the constructor
|
@@ -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
|
||||
{
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\ActionManagement;
|
||||
namespace Infinito\Domain\Action;
|
||||
|
||||
use Infinito\Domain\RequestManagement\Action\RequestedActionInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
@@ -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
|
||||
{
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\ActionManagement;
|
||||
namespace Infinito\Domain\Action;
|
||||
|
||||
/**
|
||||
* Offers a function to create an action object by the RequestedActionService.
|
@@ -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
|
||||
{
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\ActionManagement;
|
||||
namespace Infinito\Domain\Action;
|
||||
|
||||
use Infinito\Entity\EntityInterface;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\ActionManagement;
|
||||
namespace Infinito\Domain\Action;
|
||||
|
||||
use Infinito\Entity\EntityInterface;
|
||||
|
@@ -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
|
||||
{
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\Action\Create;
|
||||
|
||||
use Infinito\Domain\Action\ActionInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface CreateActionInterface extends ActionInterface
|
||||
{
|
||||
}
|
@@ -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()
|
||||
{
|
@@ -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()
|
||||
{
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\Action\Execute;
|
||||
|
||||
use Infinito\Domain\Action\AbstractAction;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
abstract class AbstractExecuteAction extends AbstractAction
|
||||
{
|
||||
}
|
@@ -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()
|
||||
{
|
@@ -1,3 +1,3 @@
|
||||
# ActionManagement
|
||||
# Action
|
||||
## Brainstorming
|
||||

|
@@ -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()
|
||||
{
|
@@ -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!
|
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\Action\Update;
|
||||
|
||||
use Infinito\Domain\Action\AbstractAction;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
abstract class AbstractUpdateAction extends AbstractAction
|
||||
{
|
||||
}
|
@@ -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()
|
||||
{
|
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\ActionManagement\Create;
|
||||
|
||||
use Infinito\Domain\ActionManagement\ActionInterface;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface CreateActionInterface extends ActionInterface
|
||||
{
|
||||
}
|
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\ActionManagement\Execute;
|
||||
|
||||
use Infinito\Domain\ActionManagement\AbstractAction;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
abstract class AbstractExecuteAction extends AbstractAction
|
||||
{
|
||||
}
|
@@ -1,12 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\ActionManagement\Update;
|
||||
|
||||
use Infinito\Domain\ActionManagement\AbstractAction;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
abstract class AbstractUpdateAction extends AbstractAction
|
||||
{
|
||||
}
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user