Renamed ViewBuilder to ViewService

This commit is contained in:
Kevin Frantz 2019-04-14 14:16:33 +02:00
parent 131d6aa157
commit 45f92bac53
3 changed files with 9 additions and 11 deletions

View File

@ -4,7 +4,7 @@ namespace Infinito\Domain\MVCManagement;
use FOS\RestBundle\View\View;
use Infinito\Attribut\ActionTypeAttribut;
use Infinito\Domain\ViewManagement\ViewBuilderInterface;
use Infinito\Domain\ViewManagement\ViewServiceInterface;
use Infinito\Domain\ProcessManagement\ProcessServiceInterface;
/**
@ -18,9 +18,9 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
{
use ActionTypeAttribut;
/**
* @var ViewBuilderInterface
* @var ViewServiceInterface
*/
private $viewBuilder;
private $viewService;
/**
* @var ProcessServiceInterface
@ -28,12 +28,12 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
private $processService;
/**
* @param ViewBuilderInterface $viewBuilder
* @param ViewServiceInterface $viewBuilder
* @param ProcessServiceInterface $processService
*/
public function __construct(ViewBuilderInterface $viewBuilder, ProcessServiceInterface $processService)
public function __construct(ViewServiceInterface $viewBuilder, ProcessServiceInterface $processService)
{
$this->viewBuilder = $viewBuilder;
$this->viewService = $viewBuilder;
$this->processService = $processService;
}
@ -46,7 +46,7 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
public function process(): View
{
$data = $this->processService->process();
$view = $this->viewBuilder->getView();
$view = $this->viewService->getView();
$view->setData($data);
return $view;

View File

@ -10,10 +10,8 @@ use Infinito\Domain\ParameterManagement\Parameter\FrameParameter;
/**
* @author kevinfrantz
*
* @todo Rename to ViewService
*/
final class ViewBuilder implements ViewBuilderInterface
final class ViewBuilder implements ViewServiceInterface
{
/**
* @var string The path to the atom entity template

View File

@ -7,7 +7,7 @@ use FOS\RestBundle\View\View;
/**
* @author kevinfrantz
*/
interface ViewBuilderInterface
interface ViewServiceInterface
{
/**
* @return View