Renamed MVCRoutineService to CoreService

This commit is contained in:
Kevin Frantz 2019-05-31 00:16:21 +02:00
parent 9213ff2bad
commit eaaf9a7f15
3 changed files with 10 additions and 10 deletions

View File

@ -7,7 +7,7 @@ use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Request;
use Infinito\Controller\API\AbstractAPIController;
use Infinito\Domain\Request\Action\RequestedActionServiceInterface;
use Infinito\Domain\MVC\MVCRoutineServiceInterface;
use Infinito\Domain\Core\CoreServiceInterface;
use Infinito\DBAL\Types\ActionType;
use Infinito\Attribut\ClassAttributInterface;
@ -54,9 +54,9 @@ final class LayerController extends AbstractAPIController
*
* @todo Mayber create an own controller for sources, because they have some special logic!
*/
public function create(Request $request, MVCRoutineServiceInterface $mvcRoutineService, RequestedActionServiceInterface $requestedActionService, string $layer): Response
public function create(Request $request, CoreServiceInterface $mvcRoutineService, RequestedActionServiceInterface $requestedActionService, string $layer): Response
{
//Not implemented yet in MVC routine. This is just a draft!
//Not implemented yet in Core routine. This is just a draft!
if ($request->query->has(ClassAttributInterface::CLASS_ATTRIBUT_NAME)) {
$class = $request->query->get(ClassAttributInterface::CLASS_ATTRIBUT_NAME);
$requestedActionService->getRequestedEntity()->setClass($class);
@ -74,7 +74,7 @@ final class LayerController extends AbstractAPIController
* methods={"GET"}
* )
*/
public function read(MVCRoutineServiceInterface $mvcRoutineService, RequestedActionServiceInterface $requestedActionService, string $layer, $identity): Response
public function read(CoreServiceInterface $mvcRoutineService, RequestedActionServiceInterface $requestedActionService, string $layer, $identity): Response
{
$requestedActionService->setActionType(ActionType::READ);
$requestedActionService->setLayer($layer);

View File

@ -1,6 +1,6 @@
<?php
namespace Infinito\Domain\MVC;
namespace Infinito\Domain\Core;
use FOS\RestBundle\View\View;
use Infinito\Attribut\ActionTypeAttribut;
@ -14,7 +14,7 @@ use Infinito\Domain\Process\ProcessServiceInterface;
* @todo Test this class
* @todo Rename this class and domain to something like "CoreManagement"
*/
final class MVCRoutineService implements MVCRoutineServiceInterface
final class CoreService implements CoreServiceInterface
{
use ActionTypeAttribut;
/**
@ -41,7 +41,7 @@ final class MVCRoutineService implements MVCRoutineServiceInterface
* @todo Optimize the whole following function. It's just implemented like this for test reasons.
* {@inheritdoc}
*
* @see \Infinito\Domain\MVC\MVCRoutineServiceInterface::process()
* @see \Infinito\Domain\Core\CoreServiceInterface::process()
*/
public function process(): View
{

View File

@ -1,16 +1,16 @@
<?php
namespace Infinito\Domain\MVC;
namespace Infinito\Domain\Core;
use FOS\RestBundle\View\View;
use Infinito\Attribut\ActionTypeAttributInterface;
/**
* This interface offers the options to process an MVC routine.
* This interface offers the options to process an Core routine.
*
* @author kevinfrantz
*/
interface MVCRoutineServiceInterface extends ActionTypeAttributInterface
interface CoreServiceInterface extends ActionTypeAttributInterface
{
/**
* Process through the layers.