mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-04-16 10:16:22 +02:00
Renamed ViewBuilder to ViewService
This commit is contained in:
parent
131d6aa157
commit
45f92bac53
@ -4,7 +4,7 @@ namespace Infinito\Domain\MVCManagement;
|
|||||||
|
|
||||||
use FOS\RestBundle\View\View;
|
use FOS\RestBundle\View\View;
|
||||||
use Infinito\Attribut\ActionTypeAttribut;
|
use Infinito\Attribut\ActionTypeAttribut;
|
||||||
use Infinito\Domain\ViewManagement\ViewBuilderInterface;
|
use Infinito\Domain\ViewManagement\ViewServiceInterface;
|
||||||
use Infinito\Domain\ProcessManagement\ProcessServiceInterface;
|
use Infinito\Domain\ProcessManagement\ProcessServiceInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -18,9 +18,9 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
|
|||||||
{
|
{
|
||||||
use ActionTypeAttribut;
|
use ActionTypeAttribut;
|
||||||
/**
|
/**
|
||||||
* @var ViewBuilderInterface
|
* @var ViewServiceInterface
|
||||||
*/
|
*/
|
||||||
private $viewBuilder;
|
private $viewService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var ProcessServiceInterface
|
* @var ProcessServiceInterface
|
||||||
@ -28,12 +28,12 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
|
|||||||
private $processService;
|
private $processService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ViewBuilderInterface $viewBuilder
|
* @param ViewServiceInterface $viewBuilder
|
||||||
* @param ProcessServiceInterface $processService
|
* @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;
|
$this->processService = $processService;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
|
|||||||
public function process(): View
|
public function process(): View
|
||||||
{
|
{
|
||||||
$data = $this->processService->process();
|
$data = $this->processService->process();
|
||||||
$view = $this->viewBuilder->getView();
|
$view = $this->viewService->getView();
|
||||||
$view->setData($data);
|
$view->setData($data);
|
||||||
|
|
||||||
return $view;
|
return $view;
|
||||||
|
@ -10,10 +10,8 @@ use Infinito\Domain\ParameterManagement\Parameter\FrameParameter;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @author kevinfrantz
|
* @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
|
* @var string The path to the atom entity template
|
||||||
|
@ -7,7 +7,7 @@ use FOS\RestBundle\View\View;
|
|||||||
/**
|
/**
|
||||||
* @author kevinfrantz
|
* @author kevinfrantz
|
||||||
*/
|
*/
|
||||||
interface ViewBuilderInterface
|
interface ViewServiceInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @return View
|
* @return View
|
Loading…
x
Reference in New Issue
Block a user