[TYPO3-mvc] 6.2 session handling

Thomas Mammitzsch thomas at visualworx.de
Fri May 9 13:41:16 CEST 2014


Hi Jacco,

maybe like that (didn't test it):

     /**
      *
      * @param \TYPO3\CMS\Extbase\Object\ObjectManagerInterface 
$objectManager
      */
     public function 
__construct(\TYPO3\CMS\Extbase\Object\ObjectManagerInterface 
$objectManager) {
         parent::__construct($objectManager);
         .....
    }

regards, Thomas

Am 09.05.2014 13:17, schrieb Jacco van der Post:
> Hi!
>
> I have an old extension which uses session handling. Same like
>
> http://www.benny-vs-web.de/typo3/extbase-session-handler-selbstgebastelt
>
> or
>
> http://www.xn--typo3-nrnberg-2ob.de/typo-v5/extbase/erweiterungen/sessions/ 
>
>
> Now on the construct part, 6.2 gives an error
>
>
> /**
>      * The session handler
>      * @var Tx_MyExt_Domain_Session_SessionHandler
>      */
>     protected $sessionHandler = NULL;
>
>     public function __construct() {
>         parent::__construct();
>         // get an instance of the session handler
>         $this->sessionHandler = 
> t3lib_div::makeInstance('Tx_MyExt_Domain_Session_SessionHandler');
>     }
>
>
> Error:
>
> Fatal Error: Argument 1 passed to 
> TYPO3\CMS\Extbase\Persistence\Repository::__construct() must implement 
> interface TYPO3\CMS\Extbase\Object\ObjectManagerInterface, none given
>
>
> Anybody got an example how to get this to work on 6.2?
>
> Thanks a lot
>


More information about the TYPO3-project-typo3v4mvc mailing list