bootstrap api and apply on accompanying period

This commit is contained in:
2021-05-06 00:14:36 +02:00
parent f02e33fda7
commit 07e0692783
16 changed files with 235 additions and 257 deletions

View File

@@ -5,6 +5,7 @@ namespace Chill\MainBundle\CRUD\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Serializer\SerializerInterface;
class ApiController extends AbstractCRUDController
{
@@ -114,22 +115,6 @@ class ApiController extends AbstractCRUDController
protected function getSerializer(): SerializerInterface
{
return $this->get(SerializerInterface::class);
return $this->get('serializer');
}
/**
* Defined the services necessary for this controller
*
* @return array
*/
public static function getSubscribedServices(): array
{
return \array_merge(
parent::getSubscribedServices(),
[
SerializerInterface::class => SerializerInterface::class,
]
);
}
}