Implemented Draft of MVCRoutineService

This commit is contained in:
Kevin Frantz
2019-02-15 18:03:57 +01:00
parent 3e1590ffbf
commit 031bff568a
5 changed files with 113 additions and 10 deletions

View File

@@ -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();
}
}