[TYPO3-mvc] 6.2 session handling

Jacco van der Post jacco at id-internetservices.com
Fri May 9 13:17:26 CEST 2014


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

-- 
Kind Regards

Jacco van der Post



More information about the TYPO3-project-typo3v4mvc mailing list