mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
bootstrap api and apply on accompanying period
This commit is contained in:
@@ -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,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user