mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Implemented draft for ActionManagement
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
namespace App\Domain\ActionManagement;
|
||||
|
||||
use App\Domain\RequestManagement\Action\RequestedActionInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use App\Repository\RepositoryInterface;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use App\Entity\EntityInterface;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
|
||||
/**
|
||||
* This interface offers all classes for managing an Action.
|
||||
@@ -20,4 +25,26 @@ interface ActionServiceInterface
|
||||
* @return bool true if the action permissions are right
|
||||
*/
|
||||
public function isRequestedActionSecure(): bool;
|
||||
|
||||
/**
|
||||
* @return Request
|
||||
*/
|
||||
public function getRequest(): Request;
|
||||
|
||||
/**
|
||||
* @return RepositoryInterface
|
||||
*/
|
||||
public function getRepository(): RepositoryInterface;
|
||||
|
||||
/**
|
||||
* @param EntityInterface $entity
|
||||
*
|
||||
* @return FormBuilderInterface
|
||||
*/
|
||||
public function getForm(EntityInterface $entity): FormBuilderInterface;
|
||||
|
||||
/**
|
||||
* @return EntityManagerInterface
|
||||
*/
|
||||
public function getEntityManager(): EntityManagerInterface;
|
||||
}
|
||||
|
Reference in New Issue
Block a user