[TASK] (Core): Code Cleanup in AbstractTagBasedViewHelper
authorSebastian Kurfuerst <sebastian@typo3.org>
Sun, 19 Jun 2011 08:21:11 +0000 (10:21 +0200)
committerSebastian Kurfuerst <sebastian@typo3.org>
Mon, 20 Jun 2011 08:17:10 +0000 (10:17 +0200)
Change-Id: Icef02f0e1934a49e682c57ef91926b8666de8112

typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractTagBasedViewHelper.php

index 737a558..4df22fb 100644 (file)
@@ -53,12 +53,14 @@ abstract class Tx_Fluid_Core_ViewHelper_AbstractTagBasedViewHelper extends Tx_Fl
        protected $tagName = 'div';
 
        /**
-        * @param Tx_Extbase_Object_ObjectManagerInterface $objectManager
+        * Inject a TagBuilder
+        *
+        * @param Tx_Fluid_Core_ViewHelper_TagBuilder $tagBuilder Tag builder
         * @return void
+        * @author Bastian Waidelich <bastian@typo3.org>
         */
-       public function injectObjectManager(Tx_Extbase_Object_ObjectManagerInterface $objectManager) {
-               $this->objectManager = $objectManager;
-               $this->tag = $this->objectManager->create('Tx_Fluid_Core_ViewHelper_TagBuilder');
+       public function injectTagBuilder(Tx_Fluid_Core_ViewHelper_TagBuilder $tagBuilder) {
+               $this->tag = $tagBuilder;
        }
 
        /**