[BUGFIX] Wrong usage of class CacheManager
authorSteffen Gebert <steffen.gebert@typo3.org>
Tue, 28 Aug 2012 10:08:54 +0000 (12:08 +0200)
committerSteffen Gebert <steffen.gebert@typo3.org>
Tue, 28 Aug 2012 10:23:52 +0000 (12:23 +0200)
CacheManager is used as Cache_manager

Change-Id: Icc1b061265031a3dcf55204b3188a063398157d6
Resolves: #40318
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14149
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
typo3/sysext/dbal/Classes/Database/DatabaseConntectionOverride.php

index c4d00f1..9eedc46 100644 (file)
@@ -209,7 +209,7 @@ class DatabaseConntectionOverride extends \TYPO3\CMS\Core\Database\DatabaseConne
                $this->SQLparser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\SqlParser');
                $this->Installer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('t3lib_install');
                $this->installerSql = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Install\\Sql\\SchemaMigrator');
-               $this->queryCache = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\Cache_Manager')->getCache('dbal');
+               $this->queryCache = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager')->getCache('dbal');
                // Set internal variables with configuration:
                $this->conf = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dbal'];
                $this->initInternalVariables();
@@ -243,7 +243,7 @@ class DatabaseConntectionOverride extends \TYPO3\CMS\Core\Database\DatabaseConne
         * @return void
         */
        public function clearCachedFieldInfo() {
-               $phpCodeCache = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\Cache_Manager')->getCache('cache_phpcode');
+               $phpCodeCache = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager')->getCache('cache_phpcode');
                $phpCodeCache->flushByTag('t3lib_db');
        }
 
@@ -253,7 +253,7 @@ class DatabaseConntectionOverride extends \TYPO3\CMS\Core\Database\DatabaseConne
         * @return void
         */
        public function cacheFieldInfo() {
-               $phpCodeCache = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\Cache_Manager')->getCache('cache_phpcode');
+               $phpCodeCache = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Cache\\CacheManager')->getCache('cache_phpcode');
                // try to fetch cache
                // cache is flushed when admin_query() is called
                if ($phpCodeCache->has($this->cacheIdentifier)) {