change public function to protected function

This commit is contained in:
Julien Fastré 2021-12-13 14:57:36 +00:00 committed by juminet
parent 8affeb08d9
commit 4dc490beb7

View File

@ -120,7 +120,7 @@ class PersonApiController extends ApiController
return $this->json($configAltNames, Response::HTTP_OK, [], ['groups' => ['read']]);
}
public function getValidationGroups(string $action, Request $request, string $_format, $entity): ?array
protected function getValidationGroups(string $action, Request $request, string $_format, $entity): ?array
{
if ($action === '_entity'){
if ($request->getMethod() === Request::METHOD_POST){