Exemplo n.º 1
0
 /**
  * Return 'this' as singleton
  *
  * @return Bootstrap
  * @internal This is not a public API method, do not use in own extensions
  */
 public static function getInstance()
 {
     if (is_null(static::$instance)) {
         $applicationContext = getenv('TYPO3_CONTEXT') ?: (getenv('REDIRECT_TYPO3_CONTEXT') ?: 'Production');
         self::$instance = new static($applicationContext);
         self::$instance->defineTypo3RequestTypes();
     }
     return static::$instance;
 }