[TYPO3-mvc] Get the injecting object within the injected object
Steffen Müller
typo3 at t3node.com
Thu Oct 9 21:27:08 CEST 2014
Hi.
Why not add the extension name as a static const to the service class?
It is usually not subject to change.
you could also use an inject method instead of @inject annotation:
public function
injectTypo3Services(\TxXmTools\Classes\Helpers\Typo3Services
$typo3Services) {
$this->typo3Services = $typo3Services;
// add things here .
// \TxXmTools\Classes\Helpers\Typo3Services::EXTENSION_NAME
}
--
cheers,
Steffen
More information about the TYPO3-project-typo3v4mvc
mailing list