fix phpstan and rector errors, fix path for rector rules

This commit is contained in:
2024-02-13 19:12:14 +01:00
parent f889d67e94
commit 2ddfd56401
8 changed files with 12 additions and 14 deletions

View File

@@ -39,8 +39,6 @@ abstract class AbstractCRUDController extends AbstractController
*/
protected array $crudConfig = [];
public function __construct(private readonly ManagerRegistry $managerRegistry) {}
/**
* get the role given from the config.
*/
@@ -183,7 +181,7 @@ abstract class AbstractCRUDController extends AbstractController
$expectedVersion = $request->query->getInt('entity_version');
try {
$manager = $this->managerRegistry->getManagerForClass($this->getEntityClass());
$manager = $this->getManagerRegistry()->getManagerForClass($this->getEntityClass());
if ($manager instanceof EntityManagerInterface) {
$manager->lock($e, LockMode::OPTIMISTIC, $expectedVersion);