mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Implemented injection of RequestedEntityService to RequestedRightService
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user