Ejemplo n.º 1
0
 /**
  * Initializes this service
  *
  * @throws Exception
  * @return void
  */
 public function initialize()
 {
     if ($this->initialized) {
         throw new \TYPO3\Fluid\Reflection\Exception('The Reflection Service can only be initialized once.', 1232044696);
     }
     $frameworkConfiguration = $this->configurationManager->getConfiguration(\TYPO3\Fluid\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK);
     $this->cacheIdentifier = 'ReflectionData_' . $frameworkConfiguration['extensionName'];
     $this->loadFromCache();
     $this->initialized = TRUE;
 }
Ejemplo n.º 2
0
 /**
  * Copies the specified parseFunc configuration to $GLOBALS['TSFE']->tmpl->setup in Backend mode
  * This somewhat hacky work around is currently needed because the parseFunc() function of tslib_cObj relies on those variables to be set
  *
  * @return void
  */
 protected function simulateFrontendEnvironment()
 {
     $this->tsfeBackup = isset($GLOBALS['TSFE']) ? $GLOBALS['TSFE'] : NULL;
     $GLOBALS['TSFE'] = new \stdClass();
     $GLOBALS['TSFE']->tmpl->setup = $this->configurationManager->getConfiguration(\TYPO3\Fluid\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FULL_TYPOSCRIPT);
 }