mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-11 06:47:31 +01:00
48 lines
1.1 KiB
PHP
48 lines
1.1 KiB
PHP
<?php
|
|
|
|
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 Doctrine\ORM\EntityManagerInterface;
|
|
|
|
/**
|
|
* This interface offers all classes for managing an Action.
|
|
*
|
|
* @author kevinfrantz
|
|
*/
|
|
interface ActionServiceInterface
|
|
{
|
|
/**
|
|
* @return RequestedActionInterface Returns the requested action
|
|
*/
|
|
public function getRequestedAction(): RequestedActionInterface;
|
|
|
|
/**
|
|
* @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;
|
|
|
|
/**
|
|
* @return FormBuilderInterface
|
|
*/
|
|
public function getForm(): FormBuilderInterface;
|
|
|
|
/**
|
|
* @return EntityManagerInterface
|
|
*/
|
|
public function getEntityManager(): EntityManagerInterface;
|
|
}
|