2019-01-27 09:35:43 +01:00
|
|
|
<?php
|
|
|
|
|
2019-05-30 16:03:44 +02:00
|
|
|
namespace Infinito\Domain\Action;
|
2019-01-27 09:35:43 +01:00
|
|
|
|
2019-05-30 16:52:02 +02:00
|
|
|
use Infinito\Domain\Request\Action\RequestedActionInterface;
|
2019-01-27 15:28:25 +01:00
|
|
|
use Symfony\Component\HttpFoundation\Request;
|
2019-02-17 14:33:19 +01:00
|
|
|
use Infinito\Repository\RepositoryInterface;
|
2019-01-27 15:28:25 +01:00
|
|
|
use Symfony\Component\Form\FormBuilderInterface;
|
|
|
|
use Doctrine\ORM\EntityManagerInterface;
|
2019-01-27 09:35:43 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This interface offers all classes for managing an Action.
|
|
|
|
*
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
2019-04-14 14:28:08 +02:00
|
|
|
interface ActionDependenciesDAOServiceInterface
|
2019-01-27 09:35:43 +01:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @return RequestedActionInterface Returns the requested action
|
|
|
|
*/
|
|
|
|
public function getRequestedAction(): RequestedActionInterface;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool true if the action permissions are right
|
|
|
|
*/
|
|
|
|
public function isRequestedActionSecure(): bool;
|
2019-01-27 15:28:25 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return Request
|
|
|
|
*/
|
|
|
|
public function getRequest(): Request;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return RepositoryInterface
|
|
|
|
*/
|
|
|
|
public function getRepository(): RepositoryInterface;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return FormBuilderInterface
|
|
|
|
*/
|
2019-02-06 18:38:20 +01:00
|
|
|
public function getCurrentFormBuilder(): FormBuilderInterface;
|
2019-01-27 15:28:25 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return EntityManagerInterface
|
|
|
|
*/
|
|
|
|
public function getEntityManager(): EntityManagerInterface;
|
2019-01-27 09:35:43 +01:00
|
|
|
}
|