infinito/application/symfony/src/Domain/Action/ActionDependenciesDAOServiceInterface.php

48 lines
1.1 KiB
PHP
Raw Normal View History

2019-01-27 09:35:43 +01:00
<?php
namespace Infinito\Domain\Action;
2019-01-27 09:35:43 +01:00
use Infinito\Domain\Request\Action\RequestedActionInterface;
2019-01-27 15:28:25 +01:00
use Symfony\Component\HttpFoundation\Request;
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
*/
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
}