[TYPO3-mvc] Re: Specific typoscripts not used in eID script

Philipp philippwrann at gmx.at
Fri Feb 7 14:55:07 CET 2014


meanwhile i added this method in my repository
	
	/**
	 * A weird way to inject our patched backend - only used in eID scripts
	 */
	public function initBackend() {
		$backend = $this->objectManager->get('TYPO3\\CMS\Extbase\\Persistence\\Generic\\Backend');
		$storage = $this->objectManager->get('Pixelpoint\\RegionalObject\\Persistence\\Generic\\Storage\\PatchedTypo3DbBackend');
		$reflection = new \ReflectionClass($backend);
		$property = $reflection->getProperty('storageBackend');
		$property->setAccessible(TRUE);
		$property->setValue($backend,$storage);
	}

this is really weird but it works for the moment
if you know how to improve the bootstrap process i would be very happy

kind regards


More information about the TYPO3-project-typo3v4mvc mailing list