[TYPO3-mvc] 6.2 session handling
Jacco van der Post
jacco at id-internetservices.com
Sun May 11 18:56:00 CEST 2014
I tried the following in a repository, but just keep getting
Fatal Error: Argument 1 passed to
TYPO3\CMS\Extbase\Persistence\Repository::__construct() must implement
interface TYPO3\CMS\Extbase\Object\ObjectManagerInterface, none given
/**
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
*/
protected $objectManager;
/**
* The session handler
* @var Tx_Jpadvisor_Domain_Session_SessionHandler
*/
protected $sessionHandler;
/**
* Injects the object manager
*
* @param \TYPO3\CMS\Extbase\Object\ObjectManager $objectManager
* @return void
*/
public function
injectObjectManager(\TYPO3\CMS\Extbase\Object\ObjectManager
$objectManager) {
$this->objectManager = $objectManager;
$this->sessionHandler =
$this->objectManager->get('Tx_Jpadvisor_Domain_Session_SessionHandler');
}
--
Kind Regards
Jacco van der Post
More information about the TYPO3-project-typo3v4mvc
mailing list