[TASK] Rename ExtensionManager class
authorHelmut Hummel <helmut.hummel@typo3.org>
Sat, 3 Nov 2012 18:46:25 +0000 (19:46 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 3 Nov 2012 18:50:59 +0000 (19:50 +0100)
The class ExtensionManager is actually a utility
to manage extensions. Rename it to better reflect
it's purpose.

Resolves: #42661
Releases: 6.0

Change-Id: I9662c3feef3a94e7ede8fd46b55b2531debad1ab
Reviewed-on: http://review.typo3.org/16172
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/sysext/fluid/Classes/Compatibility/DocbookGeneratorService.php
typo3/sysext/fluid/Classes/View/StandaloneView.php
typo3/sysext/fluid/Classes/View/TemplateView.php
typo3/sysext/fluid/ext_autoload.php
typo3/sysext/fluid/ext_tables.php

index 8eba375..5044947 100644 (file)
@@ -46,7 +46,7 @@ class DocbookGeneratorService extends \TYPO3\CMS\Fluid\Service\DocbookGenerator
                if ($namespaceParts[count($namespaceParts) - 1] == '') {
 
                }
-               $classFilePathAndName = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath(\TYPO3\CMS\Core\Utility\GeneralUtility::camelCaseToLowerCaseUnderscored($namespaceParts[1])) . 'Classes/';
+               $classFilePathAndName = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(\TYPO3\CMS\Core\Utility\GeneralUtility::camelCaseToLowerCaseUnderscored($namespaceParts[1])) . 'Classes/';
                $classFilePathAndName .= implode(array_slice($namespaceParts, 2, -1), '/') . '/';
                $classNames = array();
                $this->recursiveClassNameSearch($namespace, $classFilePathAndName, $classNames);
index 9f5697d..3cd57ad 100644 (file)
@@ -67,7 +67,7 @@ class StandaloneView extends \TYPO3\CMS\Fluid\View\AbstractTemplateView {
         * @param \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject The current cObject. If NULL a new instance will be created
         */
        public function __construct(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer $contentObject = NULL) {
-               if (!\TYPO3\CMS\Core\Extension\ExtensionManager::isLoaded('extbase')) {
+               if (!\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('extbase')) {
                        return 'In the current version you still need to have Extbase installed in order to use the Fluid Standalone view!';
                }
                $this->objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
index 2c7a7fd..276d07a 100644 (file)
@@ -348,7 +348,7 @@ class TemplateView extends \TYPO3\CMS\Fluid\View\AbstractTemplateView {
                if ($this->templateRootPath !== NULL) {
                        return $this->templateRootPath;
                } else {
-                       return str_replace('@packageResourcesPath', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($this->controllerContext->getRequest()->getControllerExtensionKey()) . 'Resources/', $this->templateRootPathPattern);
+                       return str_replace('@packageResourcesPath', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->controllerContext->getRequest()->getControllerExtensionKey()) . 'Resources/', $this->templateRootPathPattern);
                }
        }
 
@@ -373,7 +373,7 @@ class TemplateView extends \TYPO3\CMS\Fluid\View\AbstractTemplateView {
                if ($this->partialRootPath !== NULL) {
                        return $this->partialRootPath;
                } else {
-                       return str_replace('@packageResourcesPath', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($this->controllerContext->getRequest()->getControllerExtensionKey()) . 'Resources/', $this->partialRootPathPattern);
+                       return str_replace('@packageResourcesPath', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->controllerContext->getRequest()->getControllerExtensionKey()) . 'Resources/', $this->partialRootPathPattern);
                }
        }
 
@@ -398,7 +398,7 @@ class TemplateView extends \TYPO3\CMS\Fluid\View\AbstractTemplateView {
                if ($this->layoutRootPath !== NULL) {
                        return $this->layoutRootPath;
                } else {
-                       return str_replace('@packageResourcesPath', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath($this->controllerContext->getRequest()->getControllerExtensionKey()) . 'Resources/', $this->layoutRootPathPattern);
+                       return str_replace('@packageResourcesPath', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->controllerContext->getRequest()->getControllerExtensionKey()) . 'Resources/', $this->layoutRootPathPattern);
                }
        }
 
index 530a6b4..beba782 100755 (executable)
@@ -1,8 +1,8 @@
 <?php
 // DO NOT CHANGE THIS FILE! It is automatically generated by extdeveval::buildAutoloadRegistry.
 // This file was generated on 2011-08-01 22:39
-$extensionPath = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('fluid');
-$extensionClassesPath = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('fluid') . 'Classes/';
+$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('fluid');
+$extensionClassesPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('fluid') . 'Classes/';
 return array(
        'tx_fluid_exception' => $extensionClassesPath . 'Exception.php',
        'tx_fluid_fluid' => $extensionClassesPath . 'Fluid.php',
index 8a31faf..e33d67e 100644 (file)
@@ -2,5 +2,5 @@
 if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
-\TYPO3\CMS\Core\Extension\ExtensionManager::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fluid: (Optional) default ajax configuration');
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fluid: (Optional) default ajax configuration');
 ?>
\ No newline at end of file