在TYPO3 CMS 6.2的控制器中,是否可以创建一个激活了所有注释的对象实例?例如,以下工作无效:
$mapper = new \TYPO3\CMS\Extbase\Property\PropertyMapper();
答案 0 :(得分:0)
/**
* @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface
* @inject
*/
protected $objectManager;
$instance = $this->objectManager->get('Your\Class\Name');