[TASK] Remove @inject annotation 18/58618/2
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 11 Oct 2018 20:54:41 +0000 (16:54 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Thu, 11 Oct 2018 20:55:49 +0000 (22:55 +0200)
Change-Id: If40afd06bce052208763cb987d00be00805b21d5
Resolves: #86634
Reviewed-on: https://review.typo3.org/58618
Reviewed-by: Stanislas Rolland <typo3@sjbr.ca>
Tested-by: Stanislas Rolland <typo3@sjbr.ca>
ChangeLog
Classes/ViewHelpers/Form/SelectViewHelper.php

index ace3d29..1812245 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2018-10-11  Stanislas Rolland  <typo3(arobas)sjbr.ca>
 
        * Resolves #86633: Migrate Recordlist hook to TYPO3 9 LTS
+       * Resolves #86634: Remove @inject annotation
 
 2018-10-9  Stanislas Rolland  <typo3(arobas)sjbr.ca>
 
index 41eaa3c..f5db5d2 100644 (file)
@@ -5,7 +5,7 @@ namespace SJBR\StaticInfoTables\ViewHelpers\Form;
  *  Copyright notice
  *
  *  (c) 2014 Carsten Biebricher <carsten.biebricher@hdnet.de>
- *  (c) 2016-2017 Stanislas Rolland <typo3(arobas)sjbr.ca>
+ *  (c) 2016-2018 Stanislas Rolland <typo3(arobas)sjbr.ca>
  *  All rights reserved
  *
  *  This script is part of the Typo3 project. The Typo3 project is
@@ -32,6 +32,7 @@ use SJBR\StaticInfoTables\Domain\Repository\LanguageRepository;
 use SJBR\StaticInfoTables\Domain\Repository\TerritoryRepository;
 use TYPO3\CMS\Core\Utility\MathUtility;
 use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
+use TYPO3\CMS\Extbase\SignalSlot\Dispatcher;
 
 /**
  * StaticInfoTables SelectViewHelper
@@ -90,10 +91,20 @@ class SelectViewHelper extends \TYPO3\CMS\Fluid\ViewHelpers\Form\SelectViewHelpe
 
        /**
         * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher
-        * @inject
         */
        protected $signalSlotDispatcher;
 
+       /**
+        * Dependency injection of the Signal Slot Dispacher
+        *
+        * @param Dispatcher $signalSlotDispatcher
+        * @return void
+        */
+       public function injectSignalSlotDispatcher(Dispatcher $signalSlotDispatcher)
+       {
+               $this->signalSlotDispatcher = $signalSlotDispatcher;
+       }
+
        /**
         * Country repository
         *