Esempio n. 1
0
 /**
  * Life-cycle method that is called by the DI container as soon as this object is completely built
  *
  * @return void
  */
 public function initializeObject()
 {
     parent::initializeObject();
     // @todo Remove this when TYPO3 6.2 is no longer relevant
     // Replace it by a simple inject annotation like above
     if (version_compare(TYPO3_branch, '7.0', '>')) {
         // This makes sure the settings are found correctly\
         // Seems there is no good reason but this would break TYPO3 6.2
         /* @var $objectManager \TYPO3\CMS\Extbase\Object\ObjectManagerInterface */
         $objectManager = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
         $this->configurationManager = $objectManager->get('TYPO3\\T3extblog\\Configuration\\ConfigurationManager');
     }
 }