From 86ea0c65f4219d73d7020be986d8fc46544c62a7 Mon Sep 17 00:00:00 2001 From: Eric Chavaillaz Date: Wed, 31 Jul 2024 08:02:25 +0200 Subject: [PATCH] [BUGFIX] Cannot instantiate interface TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface --- Classes/Persistence/Query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Persistence/Query.php b/Classes/Persistence/Query.php index f816d53..f58980c 100644 --- a/Classes/Persistence/Query.php +++ b/Classes/Persistence/Query.php @@ -10,6 +10,7 @@ */ use Fab\Vidi\Utility\Typo3Mode; +use TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager; use TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings; use TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface; use TYPO3\CMS\Extbase\Persistence\Generic\Qom\QueryObjectModelFactory; @@ -27,7 +28,6 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception\NotImplementedException; use TYPO3\CMS\Extbase\Persistence\Exception\InvalidQueryException; use Fab\Vidi\Persistence\Storage\VidiDbBackend; -use TYPO3\CMS\Core\Http\ApplicationType; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\Persistence\Generic\Exception\InvalidNumberOfConstraintsException; use TYPO3\CMS\Extbase\Persistence\Generic\Exception\UnexpectedTypeException; @@ -134,7 +134,7 @@ class Query implements QueryInterface public function __construct($type) { $this->type = $type; - $this->persistenceManager = GeneralUtility::makeInstance(PersistenceManagerInterface::class); + $this->persistenceManager = GeneralUtility::makeInstance(PersistenceManager::class); $this->qomFactory = GeneralUtility::makeInstance(QueryObjectModelFactory::class); }