Fix inject ManagerRegistry as dependency

This commit is contained in:
2025-02-25 13:32:13 +01:00
parent 7ed10efcd1
commit 4093949c2f
36 changed files with 199 additions and 23 deletions

View File

@@ -13,10 +13,16 @@ namespace Chill\PersonBundle\Controller;
use Chill\MainBundle\CRUD\Controller\ApiController;
use Chill\MainBundle\Pagination\PaginatorInterface;
use Doctrine\Persistence\ManagerRegistry;
use Symfony\Component\HttpFoundation\Request;
class SocialIssueApiController extends ApiController
{
public function __construct(protected ManagerRegistry $managerRegistry)
{
parent::__construct($managerRegistry);
}
protected function customizeQuery(string $action, Request $request, $query): void
{
$query->where(