mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 21:57:16 +02:00
Implemented Draft of MVCRoutineService
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\ActionManagement;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
final class ActionHandlerService implements ActionHandlerServiceInterface
|
||||
{
|
||||
/**
|
||||
* @var ActionFactoryServiceInterface
|
||||
*/
|
||||
private $actionFactoryService;
|
||||
|
||||
/**
|
||||
* @param ActionFactoryServiceInterface $actionFactoryService
|
||||
*/
|
||||
public function __construct(ActionFactoryServiceInterface $actionFactoryService)
|
||||
{
|
||||
$this->actionFactoryService = $actionFactoryService;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \App\Domain\ActionManagement\ActionHandlerServiceInterface::handle()
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
return $this->actionFactoryService->create()->execute();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user