mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2024-12-04 23:17:19 +01: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 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;
|
||||
|
@ -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
|
||||
|
@ -7,7 +7,7 @@ use FOS\RestBundle\View\View;
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
*/
|
||||
interface ViewBuilderInterface
|
||||
interface ViewServiceInterface
|
||||
{
|
||||
/**
|
||||
* @return View
|
Loading…
Reference in New Issue
Block a user