[TASK] Replace @inject with inject methods in other extensions 10/42310/3
authorWouter Wolters <typo3@wouterwolters.nl>
Thu, 6 Aug 2015 10:56:18 +0000 (12:56 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 6 Aug 2015 12:28:29 +0000 (14:28 +0200)
Because of performance reasons we replace
the @inject annotations back to inject methods.

Resolves: #68786
Related: #54605
Releases: master
Change-Id: Ifc9960c9ca279c05b4120c806147e49c1084c8d5
Reviewed-on: http://review.typo3.org/42310
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
54 files changed:
typo3/sysext/about/Classes/Controller/AboutController.php
typo3/sysext/belog/Classes/Controller/AbstractController.php
typo3/sysext/beuser/Classes/Controller/BackendUserController.php
typo3/sysext/beuser/Classes/Controller/BackendUserGroupController.php
typo3/sysext/beuser/Classes/Domain/Model/ModuleData.php
typo3/sysext/beuser/Classes/Service/ModuleDataStorageService.php
typo3/sysext/documentation/Classes/Controller/DocumentController.php
typo3/sysext/documentation/Classes/Domain/Repository/DocumentRepository.php
typo3/sysext/documentation/Classes/Slots/ExtensionManager.php
typo3/sysext/extensionmanager/Classes/Command/ExtensionCommandController.php
typo3/sysext/extensionmanager/Classes/Controller/ActionController.php
typo3/sysext/extensionmanager/Classes/Controller/ConfigurationController.php
typo3/sysext/extensionmanager/Classes/Controller/DistributionController.php
typo3/sysext/extensionmanager/Classes/Controller/DownloadController.php
typo3/sysext/extensionmanager/Classes/Controller/ListController.php
typo3/sysext/extensionmanager/Classes/Controller/UpdateFromTerController.php
typo3/sysext/extensionmanager/Classes/Controller/UploadExtensionFileController.php
typo3/sysext/extensionmanager/Classes/Domain/Model/DownloadQueue.php
typo3/sysext/extensionmanager/Classes/Domain/Model/Extension.php
typo3/sysext/extensionmanager/Classes/Domain/Repository/ConfigurationItemRepository.php
typo3/sysext/extensionmanager/Classes/Domain/Repository/ExtensionRepository.php
typo3/sysext/extensionmanager/Classes/Service/ExtensionManagementService.php
typo3/sysext/extensionmanager/Classes/Utility/ConfigurationUtility.php
typo3/sysext/extensionmanager/Classes/Utility/Connection/TerUtility.php
typo3/sysext/extensionmanager/Classes/Utility/DependencyUtility.php
typo3/sysext/extensionmanager/Classes/Utility/DownloadUtility.php
typo3/sysext/extensionmanager/Classes/Utility/ExtensionModelUtility.php
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php
typo3/sysext/extensionmanager/Classes/Utility/InstallUtility.php
typo3/sysext/extensionmanager/Classes/Utility/ListUtility.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/Form/TypoScriptConstantsViewHelper.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/ProcessAvailableActionsViewHelper.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/UpdateScriptViewHelper.php
typo3/sysext/indexed_search/Classes/Controller/SearchController.php
typo3/sysext/install/Classes/Configuration/AbstractFeature.php
typo3/sysext/install/Classes/Configuration/AbstractPreset.php
typo3/sysext/install/Classes/Configuration/FeatureManager.php
typo3/sysext/install/Classes/Controller/Action/Ajax/AbstractCoreUpdate.php
typo3/sysext/install/Classes/Controller/Action/Tool/Configuration.php
typo3/sysext/install/Classes/Controller/BackendModuleController.php
typo3/sysext/install/Classes/Service/ClearCacheService.php
typo3/sysext/install/Classes/Service/CoreUpdateService.php
typo3/sysext/install/Classes/Service/CoreVersionService.php
typo3/sysext/install/Classes/Service/SilentConfigurationUpgradeService.php
typo3/sysext/install/Classes/Service/SqlExpectedSchemaService.php
typo3/sysext/install/Classes/ViewHelpers/Format/CropViewHelper.php
typo3/sysext/lang/Classes/Command/LanguageCommandController.php
typo3/sysext/lang/Classes/Controller/LanguageController.php
typo3/sysext/lang/Classes/Domain/Repository/ExtensionRepository.php
typo3/sysext/lang/Classes/Domain/Repository/LanguageRepository.php
typo3/sysext/lang/Classes/Service/RegistryService.php
typo3/sysext/lang/Classes/Service/TranslationService.php
typo3/sysext/lang/Classes/View/AbstractJsonView.php
typo3/sysext/sys_note/Classes/Controller/NoteController.php

index 699fa99..9317efa 100644 (file)
@@ -21,11 +21,17 @@ class AboutController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 
        /**
         * @var \TYPO3\CMS\About\Domain\Repository\ExtensionRepository
-        * @inject
         */
        protected $extensionRepository;
 
        /**
+        * @param \TYPO3\CMS\About\Domain\Repository\ExtensionRepository $extensionRepository
+        */
+       public function injectExtensionRepository(\TYPO3\CMS\About\Domain\Repository\ExtensionRepository $extensionRepository) {
+               $this->extensionRepository = $extensionRepository;
+       }
+
+       /**
         * Main action: Show standard information
         *
         * @return void
index 3556cfc..3a51deb 100644 (file)
@@ -72,7 +72,6 @@ abstract class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\Acti
 
        /**
         * @var \TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository
-        * @inject
         */
        protected $logEntryRepository = NULL;
 
@@ -82,6 +81,13 @@ abstract class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\Acti
        protected $pageRenderer;
 
        /**
+        * @param \TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository $logEntryRepository
+        */
+       public function injectLogEntryRepository(\TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository $logEntryRepository) {
+               $this->logEntryRepository = $logEntryRepository;
+       }
+
+       /**
         * init all actions
         * @return void
         */
index 66f367a..fe7a4ed 100644 (file)
@@ -29,29 +29,53 @@ class BackendUserController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionCont
 
        /**
         * @var \TYPO3\CMS\Beuser\Service\ModuleDataStorageService
-        * @inject
         */
        protected $moduleDataStorageService;
 
        /**
         * @var \TYPO3\CMS\Beuser\Domain\Repository\BackendUserRepository
-        * @inject
         */
        protected $backendUserRepository;
 
        /**
         * @var \TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository
-        * @inject
         */
        protected $backendUserGroupRepository;
 
        /**
         * @var \TYPO3\CMS\Beuser\Domain\Repository\BackendUserSessionRepository
-        * @inject
         */
        protected $backendUserSessionRepository;
 
        /**
+        * @param \TYPO3\CMS\Beuser\Service\ModuleDataStorageService $moduleDataStorageService
+        */
+       public function injectModuleDataStorageService(\TYPO3\CMS\Beuser\Service\ModuleDataStorageService $moduleDataStorageService) {
+               $this->moduleDataStorageService = $moduleDataStorageService;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Beuser\Domain\Repository\BackendUserRepository $backendUserRepository
+        */
+       public function injectBackendUserRepository(\TYPO3\CMS\Beuser\Domain\Repository\BackendUserRepository $backendUserRepository) {
+               $this->backendUserRepository = $backendUserRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository $backendUserGroupRepository
+        */
+       public function injectBackendUserGroupRepository(\TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository $backendUserGroupRepository) {
+               $this->backendUserGroupRepository = $backendUserGroupRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Beuser\Domain\Repository\BackendUserSessionRepository $backendUserSessionRepository
+        */
+       public function injectBackendUserSessionRepository(\TYPO3\CMS\Beuser\Domain\Repository\BackendUserSessionRepository $backendUserSessionRepository) {
+               $this->backendUserSessionRepository = $backendUserSessionRepository;
+       }
+
+       /**
         * Load and persist module data
         *
         * @param \TYPO3\CMS\Extbase\Mvc\RequestInterface $request
index d82f80e..935c1f6 100644 (file)
@@ -24,11 +24,17 @@ class BackendUserGroupController extends \TYPO3\CMS\Extbase\Mvc\Controller\Actio
 
        /**
         * @var \TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository
-        * @inject
         */
        protected $backendUserGroupRepository;
 
        /**
+        * @param \TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository $backendUserGroupRepository
+        */
+       public function injectBackendUserGroupRepository(\TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository $backendUserGroupRepository) {
+               $this->backendUserGroupRepository = $backendUserGroupRepository;
+       }
+
+       /**
         * Initialize actions
         *
         * @return void
index 8fcd61c..9044ed6 100644 (file)
@@ -21,7 +21,6 @@ class ModuleData {
 
        /**
         * @var \TYPO3\CMS\Beuser\Domain\Model\Demand
-        * @inject
         */
        protected $demand;
 
@@ -31,6 +30,13 @@ class ModuleData {
        protected $compareUserList = array();
 
        /**
+        * @param \TYPO3\CMS\Beuser\Domain\Model\Demand $demand
+        */
+       public function injectDemand(\TYPO3\CMS\Beuser\Domain\Model\Demand $demand) {
+               $this->demand = $demand;
+       }
+
+       /**
         * @return \TYPO3\CMS\Beuser\Domain\Model\Demand
         */
        public function getDemand() {
index c128e8f..f4f1f91 100644 (file)
@@ -27,11 +27,17 @@ class ModuleDataStorageService implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
-        * @inject
         */
        protected $objectManager;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * Loads module data for user settings or returns a fresh object initially
         *
         * @return \TYPO3\CMS\Beuser\Domain\Model\ModuleData
index 46c10da..3211797 100644 (file)
@@ -23,36 +23,54 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
 class DocumentController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
 
        /**
-        * documentRepository
-        *
         * @var \TYPO3\CMS\Documentation\Domain\Repository\DocumentRepository
-        * @inject
         */
        protected $documentRepository;
 
        /**
         * @var \TYPO3\CMS\Documentation\Service\DocumentationService
-        * @inject
         */
        protected $documentationService;
 
        /**
-        * languageUtility
-        *
         * @var \TYPO3\CMS\Documentation\Utility\LanguageUtility
-        * @inject
         */
        protected $languageUtility;
 
        /**
-        * Signal Slot dispatcher
-        *
         * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
-        * @inject
         */
        protected $signalSlotDispatcher;
 
        /**
+        * @param \TYPO3\CMS\Documentation\Domain\Repository\DocumentRepository $documentRepository
+        */
+       public function injectDocumentRepository(\TYPO3\CMS\Documentation\Domain\Repository\DocumentRepository $documentRepository) {
+               $this->documentRepository = $documentRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Documentation\Service\DocumentationService $documentationService
+        */
+       public function injectDocumentationService(\TYPO3\CMS\Documentation\Service\DocumentationService $documentationService) {
+               $this->documentationService = $documentationService;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Documentation\Utility\LanguageUtility $languageUtility
+        */
+       public function injectLanguageUtility(\TYPO3\CMS\Documentation\Utility\LanguageUtility $languageUtility) {
+               $this->languageUtility = $languageUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
+        */
+       public function injectSignalSlotDispatcher(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher) {
+               $this->signalSlotDispatcher = $signalSlotDispatcher;
+       }
+
+       /**
         * Lists the available documents.
         *
         * @return void
index 5ea564b..0c9408d 100644 (file)
@@ -23,11 +23,17 @@ class DocumentRepository {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
-        * @inject
         */
        protected $objectManager;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * Finds all documents.
         *
         * @return \TYPO3\CMS\Documentation\Domain\Model\Document[]
index 0b15a02..8337701 100644 (file)
@@ -31,11 +31,17 @@ class ExtensionManager {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
-        * @inject
         */
        protected $objectManager;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * Processes the list of actions for a given extension and adds
         * a link to the manual(s), if available.
         *
index e4551f6..c77851b 100644 (file)
@@ -30,11 +30,17 @@ class ExtensionCommandController extends CommandController {
 
        /**
         * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
-        * @inject
         */
        protected $signalSlotDispatcher;
 
        /**
+        * @param \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
+        */
+       public function injectSignalSlotDispatcher(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher) {
+               $this->signalSlotDispatcher = $signalSlotDispatcher;
+       }
+
+       /**
         * Installs an extension by key
         *
         * The extension files must be present in one of the
index 2686efe..fd416aa 100644 (file)
@@ -22,29 +22,53 @@ class ActionController extends AbstractController {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\InstallUtility
-        * @inject
         */
        protected $installUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility
-        * @inject
         */
        protected $fileHandlingUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ExtensionModelUtility
-        * @inject
         */
        protected $extensionModelUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService
-        * @inject
         */
        protected $managementService;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\InstallUtility $installUtility
+        */
+       public function injectInstallUtility(\TYPO3\CMS\Extensionmanager\Utility\InstallUtility $installUtility) {
+               $this->installUtility = $installUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility $fileHandlingUtility
+        */
+       public function injectFileHandlingUtility(\TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility $fileHandlingUtility) {
+               $this->fileHandlingUtility = $fileHandlingUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ExtensionModelUtility $extensionModelUtility
+        */
+       public function injectExtensionModelUtility(\TYPO3\CMS\Extensionmanager\Utility\ExtensionModelUtility $extensionModelUtility) {
+               $this->extensionModelUtility = $extensionModelUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService $managementService
+        */
+       public function injectManagementService(\TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService $managementService) {
+               $this->managementService = $managementService;
+       }
+
+       /**
         * Toggle extension installation state action
         *
         * @param string $extensionKey
index 855bf55..fb53e3c 100644 (file)
@@ -24,17 +24,29 @@ class ConfigurationController extends AbstractController {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\ConfigurationItemRepository
-        * @inject
         */
        protected $configurationItemRepository;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository
-        * @inject
         */
        protected $extensionRepository;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Domain\Repository\ConfigurationItemRepository $configurationItemRepository
+        */
+       public function injectConfigurationItemRepository(\TYPO3\CMS\Extensionmanager\Domain\Repository\ConfigurationItemRepository $configurationItemRepository) {
+               $this->configurationItemRepository = $configurationItemRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository
+        */
+       public function injectExtensionRepository(\TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository) {
+               $this->extensionRepository = $extensionRepository;
+       }
+
+       /**
         * Show the extension configuration form. The whole form field handling is done
         * in the corresponding view helper
         *
index 2e1d0eb..c6c3338 100644 (file)
@@ -21,11 +21,17 @@ class DistributionController extends AbstractController {
 
        /**
         * @var \TYPO3\CMS\Core\Package\PackageManager
-        * @inject
         */
        protected $packageManager;
 
        /**
+        * @param \TYPO3\CMS\Core\Package\PackageManager $packageManager
+        */
+       public function injectPackageManager(\TYPO3\CMS\Core\Package\PackageManager $packageManager) {
+               $this->packageManager = $packageManager;
+       }
+
+       /**
         * Shows information about the distribution
         *
         * @param \TYPO3\CMS\Extensionmanager\Domain\Model\Extension $extension
index 9fc3e18..6fa10b8 100644 (file)
@@ -24,41 +24,77 @@ class DownloadController extends AbstractController {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository
-        * @inject
         */
        protected $extensionRepository;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility
-        * @inject
         */
        protected $fileHandlingUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService
-        * @inject
         */
        protected $managementService;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\InstallUtility
-        * @inject
         */
        protected $installUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\DownloadUtility
-        * @inject
         */
        protected $downloadUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility
-        * @inject
         */
        protected $configurationUtility;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository
+        */
+       public function injectExtensionRepository(\TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository) {
+               $this->extensionRepository = $extensionRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility $fileHandlingUtility
+        */
+       public function injectFileHandlingUtility(\TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility $fileHandlingUtility) {
+               $this->fileHandlingUtility = $fileHandlingUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService $managementService
+        */
+       public function injectManagementService(\TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService $managementService) {
+               $this->managementService = $managementService;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\InstallUtility $installUtility
+        */
+       public function injectInstallUtility(\TYPO3\CMS\Extensionmanager\Utility\InstallUtility $installUtility) {
+               $this->installUtility = $installUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\DownloadUtility $downloadUtility
+        */
+       public function injectDownloadUtility(\TYPO3\CMS\Extensionmanager\Utility\DownloadUtility $downloadUtility) {
+               $this->downloadUtility = $downloadUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility
+        */
+       public function injectConfigurationUtility(\TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility) {
+               $this->configurationUtility = $configurationUtility;
+       }
+
+       /**
         * Check extension dependencies
         *
         * @param \TYPO3\CMS\Extensionmanager\Domain\Model\Extension $extension
index 5cb1e5e..bb7c719 100644 (file)
@@ -30,35 +30,65 @@ class ListController extends AbstractController {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository
-        * @inject
         */
        protected $extensionRepository;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ListUtility
-        * @inject
         */
        protected $listUtility;
 
        /**
         * @var \TYPO3\CMS\Core\Page\PageRenderer
-        * @inject
         */
        protected $pageRenderer;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\DependencyUtility
-        * @inject
         */
        protected $dependencyUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility
-        * @inject
         */
        protected $configurationUtility;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository
+        */
+       public function injectExtensionRepository(\TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository) {
+               $this->extensionRepository = $extensionRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility
+        */
+       public function injectListUtility(\TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility) {
+               $this->listUtility = $listUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Core\Page\PageRenderer $pageRenderer
+        */
+       public function injectPageRenderer(\TYPO3\CMS\Core\Page\PageRenderer $pageRenderer) {
+               $this->pageRenderer = $pageRenderer;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\DependencyUtility $dependencyUtility
+        */
+       public function injectDependencyUtility(\TYPO3\CMS\Extensionmanager\Utility\DependencyUtility $dependencyUtility) {
+               $this->dependencyUtility = $dependencyUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility
+        */
+       public function injectConfigurationUtility(\TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility) {
+               $this->configurationUtility = $configurationUtility;
+       }
+
+       /**
         * Add the needed JavaScript files for all actions
         */
        public function initializeAction() {
index ed7a785..45bd77f 100644 (file)
@@ -21,29 +21,53 @@ class UpdateFromTerController extends AbstractController {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\Repository\Helper
-        * @inject
         */
        protected $repositoryHelper;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\RepositoryRepository
-        * @inject
         */
        protected $repositoryRepository;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ListUtility
-        * @inject
         */
        protected $listUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository
-        * @inject
         */
        protected $extensionRepository;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\Repository\Helper $repositoryHelper
+        */
+       public function injectRepositoryHelper(\TYPO3\CMS\Extensionmanager\Utility\Repository\Helper $repositoryHelper) {
+               $this->repositoryHelper = $repositoryHelper;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Domain\Repository\RepositoryRepository $repositoryRepository
+        */
+       public function injectRepositoryRepository(\TYPO3\CMS\Extensionmanager\Domain\Repository\RepositoryRepository $repositoryRepository) {
+               $this->repositoryRepository = $repositoryRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility
+        */
+       public function injectListUtility(\TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility) {
+               $this->listUtility = $listUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository
+        */
+       public function injectExtensionRepository(\TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository) {
+               $this->extensionRepository = $extensionRepository;
+       }
+
+       /**
         * Update extension list from TER
         *
         * @param bool $forceUpdateCheck
index c9b9959..7af8583 100644 (file)
@@ -26,25 +26,21 @@ class UploadExtensionFileController extends AbstractController {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility
-        * @inject
         */
        protected $configurationUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility
-        * @inject
         */
        protected $fileHandlingUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility
-        * @inject
         */
        protected $terUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService
-        * @inject
         */
        protected $managementService;
 
@@ -59,6 +55,34 @@ class UploadExtensionFileController extends AbstractController {
        protected $removeFromOriginalPath = FALSE;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility
+        */
+       public function injectConfigurationUtility(\TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility) {
+               $this->configurationUtility = $configurationUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility $fileHandlingUtility
+        */
+       public function injectFileHandlingUtility(\TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility $fileHandlingUtility) {
+               $this->fileHandlingUtility = $fileHandlingUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility $terUtility
+        */
+       public function injectTerUtility(\TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility $terUtility) {
+               $this->terUtility = $terUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService $managementService
+        */
+       public function injectManagementService(\TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService $managementService) {
+               $this->managementService = $managementService;
+       }
+
+       /**
         * Remove backup folder before destruction
         */
        public function __destruct() {
index 83ff2b4..a45510f 100644 (file)
@@ -44,11 +44,17 @@ class DownloadQueue implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ListUtility
-        * @inject
         */
        protected $listUtility;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility
+        */
+       public function injectListUtility(\TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility) {
+               $this->listUtility = $listUtility;
+       }
+
+       /**
         * Adds an extension to the download queue.
         * If the extension was already requested in a different version
         * an exception is thrown.
index 8f8abb4..56606e3 100644 (file)
@@ -60,7 +60,6 @@ class Extension extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager;
 
@@ -156,6 +155,13 @@ class Extension extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
        protected $position = 0;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * @param string $authorEmail
         * @return void
         */
index f389526..e3e6768 100644 (file)
@@ -24,11 +24,17 @@ class ConfigurationItemRepository {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
-        * @inject
         */
        protected $objectManager;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * Find configuration options by extension
         *
         * @param string $extensionKey Extension key
index 9883038..80cd617 100644 (file)
@@ -31,11 +31,17 @@ class ExtensionRepository extends \TYPO3\CMS\Extbase\Persistence\Repository {
 
        /**
         * @var \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper
-        * @inject
         */
        protected $dataMapper;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper $dataMapper
+        */
+       public function injectDataMapper(\TYPO3\CMS\Extbase\Persistence\Generic\Mapper\DataMapper $dataMapper) {
+               $this->dataMapper = $dataMapper;
+       }
+
+       /**
         * Do not include pid in queries
         *
         * @return void
index ca947fc..7284d96 100644 (file)
@@ -26,37 +26,31 @@ class ExtensionManagementService implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Domain\Model\DownloadQueue
-        * @inject
         */
        protected $downloadQueue;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\DependencyUtility
-        * @inject
         */
        protected $dependencyUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\InstallUtility
-        * @inject
         */
        protected $installUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ExtensionModelUtility
-        * @inject
         */
        protected $extensionModelUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ListUtility
-        * @inject
         */
        protected $listUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\DownloadUtility
-        * @inject
         */
        protected $downloadUtility;
 
@@ -71,6 +65,48 @@ class ExtensionManagementService implements \TYPO3\CMS\Core\SingletonInterface {
        protected $skipDependencyCheck = FALSE;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Domain\Model\DownloadQueue $downloadQueue
+        */
+       public function injectDownloadQueue(\TYPO3\CMS\Extensionmanager\Domain\Model\DownloadQueue $downloadQueue) {
+               $this->downloadQueue = $downloadQueue;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\DependencyUtility $dependencyUtility
+        */
+       public function injectDependencyUtility(\TYPO3\CMS\Extensionmanager\Utility\DependencyUtility $dependencyUtility) {
+               $this->dependencyUtility = $dependencyUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\InstallUtility $installUtility
+        */
+       public function injectInstallUtility(\TYPO3\CMS\Extensionmanager\Utility\InstallUtility $installUtility) {
+               $this->installUtility = $installUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ExtensionModelUtility $extensionModelUtility
+        */
+       public function injectExtensionModelUtility(\TYPO3\CMS\Extensionmanager\Utility\ExtensionModelUtility $extensionModelUtility) {
+               $this->extensionModelUtility = $extensionModelUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility
+        */
+       public function injectListUtility(\TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility) {
+               $this->listUtility = $listUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\DownloadUtility $downloadUtility
+        */
+       public function injectDownloadUtility(\TYPO3\CMS\Extensionmanager\Utility\DownloadUtility $downloadUtility) {
+               $this->downloadUtility = $downloadUtility;
+       }
+
+       /**
         * @param string $extensionKey
         * @return void
         */
index db15bd1..4549b1a 100644 (file)
@@ -21,11 +21,17 @@ class ConfigurationUtility implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * Get default configuration from ext_conf_template of an extension
         * and save as initial configuration to LocalConfiguration ['EXT']['extConf'].
         *
index 26f5118..77a6f6b 100644 (file)
@@ -30,11 +30,17 @@ class TerUtility {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility
-        * @inject
         */
        protected $configurationUtility;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility
+        */
+       public function injectConfigurationUtility(\TYPO3\CMS\Extensionmanager\Utility\ConfigurationUtility $configurationUtility) {
+               $this->configurationUtility = $configurationUtility;
+       }
+
+       /**
         * Fetches an extension from the given mirror
         *
         * @param string $extensionKey Extension Key
index fcf4611..a9aeec5 100644 (file)
@@ -28,31 +28,26 @@ class DependencyUtility implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository
-        * @inject
         */
        protected $extensionRepository;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ListUtility
-        * @inject
         */
        protected $listUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\EmConfUtility
-        * @inject
         */
        protected $emConfUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService
-        * @inject
         */
        protected $managementService;
 
@@ -77,6 +72,41 @@ class DependencyUtility implements \TYPO3\CMS\Core\SingletonInterface {
        protected $skipDependencyCheck = FALSE;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository
+        */
+       public function injectExtensionRepository(\TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository) {
+               $this->extensionRepository = $extensionRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility
+        */
+       public function injectListUtility(\TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility) {
+               $this->listUtility = $listUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\EmConfUtility $emConfUtility
+        */
+       public function injectEmConfUtility(\TYPO3\CMS\Extensionmanager\Utility\EmConfUtility $emConfUtility) {
+               $this->emConfUtility = $emConfUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService $managementService
+        */
+       public function injectManagementService(\TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService $managementService) {
+               $this->managementService = $managementService;
+       }
+
+       /**
         * @param string $localExtensionStorage
         * @return void
         */
index 2d7c2b1..03f8da6 100644 (file)
@@ -21,13 +21,11 @@ class DownloadUtility implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility
-        * @inject
         */
        protected $terUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\Repository\Helper
-        * @inject
         */
        protected $repositoryHelper;
 
@@ -38,11 +36,31 @@ class DownloadUtility implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility
-        * @inject
         */
        protected $fileHandlingUtility;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility $terUtility
+        */
+       public function injectTerUtility(\TYPO3\CMS\Extensionmanager\Utility\Connection\TerUtility $terUtility) {
+               $this->terUtility = $terUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\Repository\Helper $repositoryHelper
+        */
+       public function injectRepositoryHelper(\TYPO3\CMS\Extensionmanager\Utility\Repository\Helper $repositoryHelper) {
+               $this->repositoryHelper = $repositoryHelper;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility $fileHandlingUtility
+        */
+       public function injectFileHandlingUtility(\TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility $fileHandlingUtility) {
+               $this->fileHandlingUtility = $fileHandlingUtility;
+       }
+
+       /**
         * Download an extension
         *
         * @param \TYPO3\CMS\Extensionmanager\Domain\Model\Extension $extension
index 317a432..bdfe2bf 100644 (file)
@@ -23,11 +23,17 @@ class ExtensionModelUtility {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * Map a legacy extension array to an object
         *
         * @param array $extensionArray
index 6e7096d..31c5919 100644 (file)
@@ -25,23 +25,41 @@ class FileHandlingUtility implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\EmConfUtility
-        * @inject
         */
        protected $emConfUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\InstallUtility
-        * @inject
         */
        protected $installUtility;
 
        /**
         * @var \TYPO3\CMS\Lang\LanguageService
-        * @inject
         */
        protected $languageService;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\EmConfUtility $emConfUtility
+        */
+       public function injectEmConfUtility(\TYPO3\CMS\Extensionmanager\Utility\EmConfUtility $emConfUtility) {
+               $this->emConfUtility = $emConfUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\InstallUtility $installUtility
+        */
+       public function injectInstallUtility(\TYPO3\CMS\Extensionmanager\Utility\InstallUtility $installUtility) {
+               $this->installUtility = $installUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Lang\LanguageService $languageService
+        */
+       public function injectLanguageService(\TYPO3\CMS\Lang\LanguageService $languageService) {
+               $this->languageService = $languageService;
+       }
+
+       /**
         * Initialize method - loads language file
         *
         * @return void
index e582022..4924504 100644 (file)
@@ -27,71 +27,137 @@ class InstallUtility implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        public $objectManager;
 
        /**
         * @var \TYPO3\CMS\Install\Service\SqlSchemaMigrationService
-        * @inject
         */
        public $installToolSqlParser;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\DependencyUtility
-        * @inject
         */
        protected $dependencyUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility
-        * @inject
         */
        protected $fileHandlingUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ListUtility
-        * @inject
         */
        protected $listUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility
-        * @inject
         */
        protected $databaseUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository
-        * @inject
         */
        public $extensionRepository;
 
        /**
         * @var \TYPO3\CMS\Core\Package\PackageManager
-        * @inject
         */
        protected $packageManager;
 
        /**
         * @var \TYPO3\CMS\Core\Cache\CacheManager
-        * @inject
         */
        protected $cacheManager;
 
        /**
         * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
-        * @inject
         */
        protected $signalSlotDispatcher;
 
        /**
         * @var \TYPO3\CMS\Core\Registry
-        * @inject
         */
        protected $registry;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Install\Service\SqlSchemaMigrationService $installToolSqlParser
+        */
+       public function injectInstallToolSqlParser(\TYPO3\CMS\Install\Service\SqlSchemaMigrationService $installToolSqlParser) {
+               $this->installToolSqlParser = $installToolSqlParser;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\DependencyUtility $dependencyUtility
+        */
+       public function injectDependencyUtility(\TYPO3\CMS\Extensionmanager\Utility\DependencyUtility $dependencyUtility) {
+               $this->dependencyUtility = $dependencyUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility $fileHandlingUtility
+        */
+       public function injectFileHandlingUtility(\TYPO3\CMS\Extensionmanager\Utility\FileHandlingUtility $fileHandlingUtility) {
+               $this->fileHandlingUtility = $fileHandlingUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility
+        */
+       public function injectListUtility(\TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility) {
+               $this->listUtility = $listUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility $databaseUtility
+        */
+       public function injectDatabaseUtility(\TYPO3\CMS\Extensionmanager\Utility\DatabaseUtility $databaseUtility) {
+               $this->databaseUtility = $databaseUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository
+        */
+       public function injectExtensionRepository(\TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository) {
+               $this->extensionRepository = $extensionRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Core\Package\PackageManager $packageManager
+        */
+       public function injectPackageManager(\TYPO3\CMS\Core\Package\PackageManager $packageManager) {
+               $this->packageManager = $packageManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Core\Cache\CacheManager $cacheManager
+        */
+       public function injectCacheManager(\TYPO3\CMS\Core\Cache\CacheManager $cacheManager) {
+               $this->cacheManager = $cacheManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
+        */
+       public function injectSignalSlotDispatcher(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher) {
+               $this->signalSlotDispatcher = $signalSlotDispatcher;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Core\Registry $registry
+        */
+       public function injectRegistry(\TYPO3\CMS\Core\Registry $registry) {
+               $this->registry = $registry;
+       }
+
+       /**
         * Helper function to install an extension
         * also processes db updates and clears the cache if the extension asks for it
         *
index fe541d9..c77139d 100644 (file)
@@ -32,35 +32,65 @@ class ListUtility implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\EmConfUtility
-        * @inject
         */
        protected $emConfUtility;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository
-        * @inject
         */
        protected $extensionRepository;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\InstallUtility
-        * @inject
         */
        protected $installUtility;
 
        /**
         * @var \TYPO3\CMS\Core\Package\PackageManager
-        * @inject
         */
        protected $packageManager;
 
        /**
         * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
-        * @inject
         */
        protected $signalSlotDispatcher;
 
        /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\EmConfUtility $emConfUtility
+        */
+       public function injectEmConfUtility(\TYPO3\CMS\Extensionmanager\Utility\EmConfUtility $emConfUtility) {
+               $this->emConfUtility = $emConfUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository
+        */
+       public function injectExtensionRepository(\TYPO3\CMS\Extensionmanager\Domain\Repository\ExtensionRepository $extensionRepository) {
+               $this->extensionRepository = $extensionRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\InstallUtility $installUtility
+        */
+       public function injectInstallUtility(\TYPO3\CMS\Extensionmanager\Utility\InstallUtility $installUtility) {
+               $this->installUtility = $installUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Core\Package\PackageManager $packageManager
+        */
+       public function injectPackageManager(\TYPO3\CMS\Core\Package\PackageManager $packageManager) {
+               $this->packageManager = $packageManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
+        */
+       public function injectSignalSlotDispatcher(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher) {
+               $this->signalSlotDispatcher = $signalSlotDispatcher;
+       }
+
+       /**
         * Returns the list of available, but not necessarily loaded extensions
         *
         * @return array[] All extensions with info
index 488e4a3..7b93010 100644 (file)
@@ -24,6 +24,9 @@ use TYPO3\CMS\Fluid\ViewHelpers\FormViewHelper;
  */
 class TypoScriptConstantsViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper {
 
+       /**
+        * @var array
+        */
        public $viewHelperMapping = array(
                'int' => 'renderIntegerField',
                'int+' => 'renderPositiveIntegerField',
@@ -40,6 +43,9 @@ class TypoScriptConstantsViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\Abs
                'default' => 'renderTextField' // only for backwards compatibility, many extensions depend on that
        );
 
+       /**
+        * @var string
+        */
        public $tagName = 'input';
 
        /**
index f2a9149..521244d 100644 (file)
@@ -25,11 +25,17 @@ class ProcessAvailableActionsViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Lin
 
        /**
         * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
-        * @inject
         */
        protected $signalSlotDispatcher;
 
        /**
+        * @param \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
+        */
+       public function injectSignalSlotDispatcher(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher) {
+               $this->signalSlotDispatcher = $signalSlotDispatcher;
+       }
+
+       /**
         * Processes the list of actions.
         *
         * @param string $extension
index 9e9a605..b8a259e 100644 (file)
@@ -24,7 +24,6 @@ class UpdateScriptViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Link\ActionVie
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
-        * @inject
         */
        protected $objectManager;
 
@@ -34,6 +33,13 @@ class UpdateScriptViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Link\ActionVie
        protected $tagName = 'a';
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * Renders a link to the update script screen if the extension has one
         *
         * @param string $extensionKey Extension key
index b8a1c16..05ce85c 100644 (file)
@@ -138,11 +138,17 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle
 
        /**
         * @var \TYPO3\CMS\Extbase\Service\TypoScriptService
-        * @inject
         */
        protected $typoScriptService;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Service\TypoScriptService $typoScriptService
+        */
+       public function injectTypoScriptService(\TYPO3\CMS\Extbase\Service\TypoScriptService $typoScriptService) {
+               $this->typoScriptService = $typoScriptService;
+       }
+
+       /**
         * sets up all necessary object for searching
         *
         * @param array $searchData The incoming search parameters
index b451f6d..2dcc76c 100644 (file)
@@ -21,7 +21,6 @@ abstract class AbstractFeature {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager = NULL;
 
@@ -46,6 +45,13 @@ abstract class AbstractFeature {
        protected $postValues = array();
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * Initialize presets of feature
         *
         * @param array $postValues List of $POST values of this feature
index 9da2e38..718676a 100644 (file)
@@ -21,7 +21,6 @@ abstract class AbstractPreset implements PresetInterface {
 
        /**
         * @var \TYPO3\CMS\Core\Configuration\ConfigurationManager
-        * @inject
         */
        protected $configurationManager = NULL;
 
@@ -46,6 +45,13 @@ abstract class AbstractPreset implements PresetInterface {
        protected $postValues = array();
 
        /**
+        * @param \TYPO3\CMS\Core\Configuration\ConfigurationManager $configurationManager
+        */
+       public function injectConfigurationManager(\TYPO3\CMS\Core\Configuration\ConfigurationManager $configurationManager) {
+               $this->configurationManager = $configurationManager;
+       }
+
+       /**
         * Set POST values
         *
         * @param array $postValues Post values of feature
index f0a61f7..c20273b 100644 (file)
@@ -21,11 +21,17 @@ class FeatureManager {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager = NULL;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * @var array List of feature class names
         */
        protected $featureRegistry = array(
index bed02a2..5e483b2 100644 (file)
@@ -22,29 +22,53 @@ abstract class AbstractCoreUpdate extends AbstractAjaxAction {
 
        /**
         * @var \TYPO3\CMS\Install\View\JsonView
-        * @inject
         */
        protected $view = NULL;
 
        /**
         * @var \TYPO3\CMS\Install\Service\CoreUpdateService
-        * @inject
         */
        protected $coreUpdateService;
 
        /**
         * @var \TYPO3\CMS\Install\Status\StatusUtility
-        * @inject
         */
        protected $statusUtility;
 
        /**
         * @var \TYPO3\CMS\Install\Service\CoreVersionService
-        * @inject
         */
        protected $coreVersionService;
 
        /**
+        * @param \TYPO3\CMS\Install\View\JsonView $view
+        */
+       public function injectView(\TYPO3\CMS\Install\View\JsonView $view) {
+               $this->view = $view;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Install\Service\CoreUpdateService $coreUpdateService
+        */
+       public function injectCoreUpdateService(\TYPO3\CMS\Install\Service\CoreUpdateService $coreUpdateService) {
+               $this->coreUpdateService = $coreUpdateService;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Install\Status\StatusUtility $statusUtility
+        */
+       public function injectStatusUtility(\TYPO3\CMS\Install\Status\StatusUtility $statusUtility) {
+               $this->statusUtility = $statusUtility;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Install\Service\CoreVersionService $coreVersionService
+        */
+       public function injectCoreVersionService(\TYPO3\CMS\Install\Service\CoreVersionService $coreVersionService) {
+               $this->coreVersionService = $coreVersionService;
+       }
+
+       /**
         * Initialize the handle action, sets up fluid stuff and assigns default variables.
         *
         * @return void
index d138761..4d9d368 100644 (file)
@@ -23,17 +23,29 @@ class Configuration extends Action\AbstractAction {
 
        /**
         * @var \TYPO3\CMS\Install\Configuration\FeatureManager
-        * @inject
         */
        protected $featureManager;
 
        /**
         * @var \TYPO3\CMS\Core\Configuration\ConfigurationManager
-        * @inject
         */
        protected $configurationManager = NULL;
 
        /**
+        * @param \TYPO3\CMS\Install\Configuration\FeatureManager $featureManager
+        */
+       public function injectFeatureManager(\TYPO3\CMS\Install\Configuration\FeatureManager $featureManager) {
+               $this->featureManager = $featureManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Core\Configuration\ConfigurationManager $configurationManager
+        */
+       public function injectConfigurationManager(\TYPO3\CMS\Core\Configuration\ConfigurationManager $configurationManager) {
+               $this->configurationManager = $configurationManager;
+       }
+
+       /**
         * Executes the tool
         *
         * @return string Rendered content
index 5fb0f80..b22d673 100644 (file)
@@ -27,7 +27,6 @@ class BackendModuleController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionCo
 
        /**
         * @var \TYPO3\CMS\Install\Service\EnableFileService
-        * @inject
         */
        protected $enableFileService;
 
@@ -37,6 +36,13 @@ class BackendModuleController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionCo
        protected $formProtection;
 
        /**
+        * @param \TYPO3\CMS\Install\Service\EnableFileService $enableFileService
+        */
+       public function injectEnableFileService(\TYPO3\CMS\Install\Service\EnableFileService $enableFileService) {
+               $this->enableFileService = $enableFileService;
+       }
+
+       /**
         * Set formprotection property
         */
        public function initializeAction() {
index 7fafa16..6f00943 100644 (file)
@@ -24,11 +24,17 @@ class ClearCacheService {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager = NULL;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * This clear cache implementation follows a pretty brutal approach.
         * Goal is to reliably get rid of cache entries, even if some broken
         * extension is loaded that would kill the backend 'clear cache' action.
index 2af182d..2098bc7 100644 (file)
@@ -41,13 +41,11 @@ class CoreUpdateService {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager;
 
        /**
         * @var \TYPO3\CMS\Install\Service\CoreVersionService
-        * @inject
         */
        protected $coreVersionService;
 
@@ -78,6 +76,20 @@ class CoreUpdateService {
        protected $downloadBaseUri;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Install\Service\CoreVersionService $coreVersionService
+        */
+       public function injectCoreVersionService(\TYPO3\CMS\Install\Service\CoreVersionService $coreVersionService) {
+               $this->coreVersionService = $coreVersionService;
+       }
+
+       /**
         * Initialize update paths
         */
        public function initializeObject() {
index 6950577..e335d6b 100644 (file)
@@ -24,13 +24,11 @@ class CoreVersionService {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager;
 
        /**
         * @var \TYPO3\CMS\Core\Registry
-        * @inject
         */
        protected $registry;
 
@@ -42,6 +40,20 @@ class CoreVersionService {
        protected $downloadBaseUri;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Core\Registry $registry
+        */
+       public function injectRegistry(\TYPO3\CMS\Core\Registry $registry) {
+               $this->registry = $registry;
+       }
+
+       /**
         * @return mixed
         */
        public function getDownloadBaseUri() {
index 87f3b05..4d7c33e 100644 (file)
@@ -33,13 +33,11 @@ class SilentConfigurationUpgradeService {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager = NULL;
 
        /**
         * @var \TYPO3\CMS\Core\Configuration\ConfigurationManager
-        * @inject
         */
        protected $configurationManager = NULL;
 
@@ -99,6 +97,20 @@ class SilentConfigurationUpgradeService {
        );
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Core\Configuration\ConfigurationManager $configurationManager
+        */
+       public function injectConfigurationManager(\TYPO3\CMS\Core\Configuration\ConfigurationManager $configurationManager) {
+               $this->configurationManager = $configurationManager;
+       }
+
+       /**
         * Executed configuration upgrades. Single upgrade methods must throw a
         * RedirectException if something was written to LocalConfiguration.
         *
index e0f0515..f78be60 100644 (file)
@@ -25,17 +25,29 @@ class SqlExpectedSchemaService {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
         */
        protected $objectManager = NULL;
 
        /**
         * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
-        * @inject
         */
        protected $signalSlotDispatcher;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
+        */
+       public function injectSignalSlotDispatcher(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher) {
+               $this->signalSlotDispatcher = $signalSlotDispatcher;
+       }
+
+       /**
         * Get expected schema array
         *
         * @return array Expected schema
index 6b3ec1b..9cfdbaf 100644 (file)
@@ -18,7 +18,6 @@ use TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\Facets\CompilableInterface;
 use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper;
 
-
 /**
  * Simplified crop view helper that does not need a frontend environment
  *
index ad89490..3528e30 100644 (file)
@@ -24,17 +24,29 @@ class LanguageCommandController extends \TYPO3\CMS\Extbase\Mvc\Controller\Comman
 
        /**
         * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
-        * @inject
         */
        protected $signalSlotDispatcher;
 
        /**
         * @var \TYPO3\CMS\Lang\Service\RegistryService
-        * @inject
         */
        protected $registryService;
 
        /**
+        * @param \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
+        */
+       public function injectSignalSlotDispatcher(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher) {
+               $this->signalSlotDispatcher = $signalSlotDispatcher;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Lang\Service\RegistryService $registryService
+        */
+       public function injectRegistryService(\TYPO3\CMS\Lang\Service\RegistryService $registryService) {
+               $this->registryService = $registryService;
+       }
+
+       /**
         * Update language file for each extension
         *
         * @param string $localesToUpdate Comma separated list of locales that needs to be updated
index ed8aa2d..1fd8b88 100644 (file)
@@ -21,29 +21,53 @@ class LanguageController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControl
 
        /**
         * @var \TYPO3\CMS\Lang\Domain\Repository\LanguageRepository
-        * @inject
         */
        protected $languageRepository;
 
        /**
         * @var \TYPO3\CMS\Lang\Domain\Repository\ExtensionRepository
-        * @inject
         */
        protected $extensionRepository;
 
        /**
         * @var \TYPO3\CMS\Lang\Service\TranslationService
-        * @inject
         */
        protected $translationService;
 
        /**
         * @var \TYPO3\CMS\Lang\Service\RegistryService
-        * @inject
         */
        protected $registryService;
 
        /**
+        * @param \TYPO3\CMS\Lang\Domain\Repository\LanguageRepository $languageRepository
+        */
+       public function injectLanguageRepository(\TYPO3\CMS\Lang\Domain\Repository\LanguageRepository $languageRepository) {
+               $this->languageRepository = $languageRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Lang\Domain\Repository\ExtensionRepository $extensionRepository
+        */
+       public function injectExtensionRepository(\TYPO3\CMS\Lang\Domain\Repository\ExtensionRepository $extensionRepository) {
+               $this->extensionRepository = $extensionRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Lang\Service\TranslationService $translationService
+        */
+       public function injectTranslationService(\TYPO3\CMS\Lang\Service\TranslationService $translationService) {
+               $this->translationService = $translationService;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Lang\Service\RegistryService $registryService
+        */
+       public function injectRegistryService(\TYPO3\CMS\Lang\Service\RegistryService $registryService) {
+               $this->registryService = $registryService;
+       }
+
+       /**
         * List languages
         *
         * @return void
index a86cc08..1fd02f3 100644 (file)
@@ -23,13 +23,11 @@ class ExtensionRepository {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
-        * @inject
         */
        protected $objectManager;
 
        /**
         * @var \TYPO3\CMS\Extensionmanager\Utility\ListUtility
-        * @inject
         */
        protected $listUtility;
 
@@ -39,6 +37,20 @@ class ExtensionRepository {
        protected $extensions = array();
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility
+        */
+       public function injectListUtility(\TYPO3\CMS\Extensionmanager\Utility\ListUtility $listUtility) {
+               $this->listUtility = $listUtility;
+       }
+
+       /**
         * Returns all objects of this repository
         *
         * @return array The extensions
index 478ac19..8485d06 100644 (file)
@@ -23,13 +23,11 @@ class LanguageRepository {
 
        /**
         * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
-        * @inject
         */
        protected $objectManager;
 
        /**
         * @var \TYPO3\CMS\Core\Localization\Locales
-        * @inject
         */
        protected $locales;
 
@@ -50,11 +48,31 @@ class LanguageRepository {
 
        /**
         * @var \TYPO3\CMS\Lang\Service\RegistryService
-        * @inject
         */
        protected $registryService;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Core\Localization\Locales $locales
+        */
+       public function injectLocales(\TYPO3\CMS\Core\Localization\Locales $locales) {
+               $this->locales = $locales;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Lang\Service\RegistryService $registryService
+        */
+       public function injectRegistryService(\TYPO3\CMS\Lang\Service\RegistryService $registryService) {
+               $this->registryService = $registryService;
+       }
+
+       /**
         * Constructor of the language repository
         */
        public function __construct() {
index e7de666..f7f900e 100755 (executable)
@@ -21,7 +21,6 @@ class RegistryService {
 
        /**
         * @var \TYPO3\CMS\Core\Registry
-        * @inject
         */
        protected $registry;
 
@@ -31,6 +30,13 @@ class RegistryService {
        protected $namespaceIdentifier = 'TYPO3\\CMS\\Lang';
 
        /**
+        * @param \TYPO3\CMS\Core\Registry $registry
+        */
+       public function injectRegistry(\TYPO3\CMS\Core\Registry $registry) {
+               $this->registry = $registry;
+       }
+
+       /**
         * Set namespace
         *
         * @param string $namespace The namespace
index b429244..e315c03 100644 (file)
@@ -31,13 +31,11 @@ class TranslationService implements \TYPO3\CMS\Core\SingletonInterface {
 
        /**
         * @var \TYPO3\CMS\Lang\Service\TerService
-        * @inject
         */
        protected $terService;
 
        /**
         * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
-        * @inject
         */
        protected $signalSlotDispatcher;
 
@@ -47,8 +45,21 @@ class TranslationService implements \TYPO3\CMS\Core\SingletonInterface {
        protected $mirrorUrl = '';
 
        /**
+        * @param \TYPO3\CMS\Lang\Service\TerService $terService
+        */
+       public function injectTerService(\TYPO3\CMS\Lang\Service\TerService $terService) {
+               $this->terService = $terService;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher
+        */
+       public function injectSignalSlotDispatcher(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher) {
+               $this->signalSlotDispatcher = $signalSlotDispatcher;
+       }
+
+       /**
         * @param \TYPO3\CMS\Extensionmanager\Utility\Repository\Helper $helper The helper
-        * @return void
         */
        public function injectRepositoryHelper(\TYPO3\CMS\Extensionmanager\Utility\Repository\Helper $helper) {
                $this->mirrorUrl = $helper->getMirrors(FALSE)->getMirrorUrl();
index 220a54d..1dab2ab 100644 (file)
@@ -20,12 +20,18 @@ namespace TYPO3\CMS\Lang\View;
 abstract class AbstractJsonView extends \TYPO3\CMS\Extbase\Mvc\View\AbstractView {
 
        /**
-        * @var \TYPO3\CMS\Extbase\Object\ObjectManager
-        * @inject
+        * @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
         */
        protected $objectManager;
 
        /**
+        * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager
+        */
+       public function injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) {
+               $this->objectManager = $objectManager;
+       }
+
+       /**
         * Render template content
         *
         * @return void
index cf52f13..26ae90e 100644 (file)
@@ -21,17 +21,29 @@ class NoteController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
 
        /**
         * @var \TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository
-        * @inject
         */
        protected $sysNoteRepository;
 
        /**
         * @var \TYPO3\CMS\Extbase\Domain\Repository\BackendUserRepository
-        * @inject
         */
        protected $backendUserRepository;
 
        /**
+        * @param \TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository $sysNoteRepository
+        */
+       public function injectSysNoteRepository(\TYPO3\CMS\SysNote\Domain\Repository\SysNoteRepository $sysNoteRepository) {
+               $this->sysNoteRepository = $sysNoteRepository;
+       }
+
+       /**
+        * @param \TYPO3\CMS\Extbase\Domain\Repository\BackendUserRepository $backendUserRepository
+        */
+       public function injectBackendUserRepository(\TYPO3\CMS\Extbase\Domain\Repository\BackendUserRepository $backendUserRepository) {
+               $this->backendUserRepository = $backendUserRepository;
+       }
+
+       /**
         * Render notes by single PID or PID list
         *
         * @param string $pids Single PID or comma separated list of PIDs