Implemented injection of RequestedEntityService to RequestedRightService

This commit is contained in:
Kevin Frantz
2019-02-13 16:26:32 +01:00
parent 6563a9fb5a
commit aafde4c0f9
9 changed files with 408 additions and 337 deletions

View File

@@ -28,6 +28,14 @@ abstract class AbstractAction extends AbstractActionConstructor implements Actio
*/
abstract protected function proccess();
/**
* This function can be implemented in the child classes for preparation.
*/
protected function prepare(): void
{
return;
}
/**
* @throws \Exception
*
@@ -37,6 +45,7 @@ abstract class AbstractAction extends AbstractActionConstructor implements Actio
*/
final public function execute()
{
$this->prepare();
if ($this->isSecure()) {
if ($this->isValid()) {
return $this->proccess();