Remove vendored-in doctrine dbal

This commit is contained in:
Björn Fromme
2018-09-29 14:36:44 +02:00
parent eaf8804e46
commit 2106ad85d5
23 changed files with 403 additions and 308 deletions
@@ -26,7 +26,7 @@ namespace EP\EpEvents\Hooks;
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
use EP\EpProducts\Utility\DbUtility;
use EP\EpProducts\Traits\DbConnectionTrait;
use TYPO3\CMS\Core\DataHandling\DataHandler;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
@@ -34,12 +34,14 @@ use TYPO3\CMS\Extbase\Object\ObjectManager;
class Tcemain
{
use DbConnectionTrait;
/**
* @param array $fields
* @param string $table
* @param int $id
* @param DataHandler $obj
* @throws \Doctrine\DBAL\DBALException
*/
public function processDatamap_preProcessFieldArray(array &$fields, $table, $id, DataHandler $obj)
{
@@ -52,7 +54,7 @@ class Tcemain
$settings = $this->getSettings();
$detailPageUid = $settings['plugin']['tx_epevents']['settings']['offerDetailPageUid'];
if ((int) $detailPageUid > 0) {
$qb = DbUtility::getDbConnection()->createQueryBuilder();
$qb = $this->getDbConnection()->createQueryBuilder();
$qb
->delete('tx_realurl_urldata')
->where('page_id = :pageUid')
@@ -74,4 +76,5 @@ class Tcemain
$configurationManager->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT)
);
}
}