/** * Run the base setup that checks server environment, determines pathes, * populates base files and sets common configuration. * * Script execution will be aborted if something fails here. * * @param string $relativePathPart Relative path of entry script back to document root * @return Bootstrap * @throws \RuntimeException when TYPO3_REQUESTTYPE was not set before, setRequestType() needs to be called before * @internal This is not a public API method, do not use in own extensions */ public function baseSetup($relativePathPart = '') { if (!defined('TYPO3_REQUESTTYPE')) { throw new \RuntimeException('No Request Type was set, TYPO3 does not know in which context it is run.', 1450561838); } SystemEnvironmentBuilder::run($relativePathPart); if (!self::$usesComposerClassLoading && ClassLoadingInformation::isClassLoadingInformationAvailable()) { ClassLoadingInformation::registerClassLoadingInformation(); } GeneralUtility::presetApplicationContext($this->applicationContext); return $this; }
/** * Run the base setup that checks server environment, * determines pathes, populates base files and sets common configuration. * * Script execution will be aborted if something fails here. * * @param string $relativePathPart Relative path of the entry script back to document root * @return \TYPO3\CMS\Core\Core\Bootstrap * @internal This is not a public API method, do not use in own extensions */ public function baseSetup($relativePathPart = '') { \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run($relativePathPart); return $this; }
/** * Run the base setup that checks server environment, determines pathes, * populates base files and sets common configuration. * * Script execution will be aborted if something fails here. * * @param string $relativePathPart Relative path of entry script back to document root * @return Bootstrap * @internal This is not a public API method, do not use in own extensions */ public function baseSetup($relativePathPart = '') { SystemEnvironmentBuilder::run($relativePathPart); Utility\GeneralUtility::presetApplicationContext($this->applicationContext); return $this; }
/** * Bootstrap basic TYPO3 * * @return void */ protected function setUpBasicTypo3Bootstrap() { $_SERVER['PWD'] = $this->instancePath; $_SERVER['argv'][0] = 'index.php'; define('TYPO3_MODE', 'BE'); define('TYPO3_cliMode', TRUE); \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::run(''); if (TYPO3_branch === '6.2') { $this->bootstrap62(); } else { $this->bootstrap76(); } }
/** * Run the base setup that checks server environment, determines pathes, * populates base files and sets common configuration. * * Script execution will be aborted if something fails here. * * @param string $relativePathPart Relative path of entry script back to document root * @return Bootstrap * @internal This is not a public API method, do not use in own extensions */ public function baseSetup($relativePathPart = '') { $composerClassLoader = $this->initializeComposerClassLoader(); $this->setEarlyInstance('Composer\\Autoload\\ClassLoader', $composerClassLoader); SystemEnvironmentBuilder::run($relativePathPart); Utility\GeneralUtility::presetApplicationContext($this->applicationContext); return $this; }
/** * Run the base setup that checks server environment, determines pathes, * populates base files and sets common configuration. * * Script execution will be aborted if something fails here. * * @param string $relativePathPart Relative path of entry script back to document root * @return Bootstrap * @internal This is not a public API method, do not use in own extensions */ public function baseSetup($relativePathPart = '') { SystemEnvironmentBuilder::run($relativePathPart); if (!self::$usesComposerClassLoading && ClassLoadingInformation::isClassLoadingInformationAvailable()) { ClassLoadingInformation::registerClassLoadingInformation(); } GeneralUtility::presetApplicationContext($this->applicationContext); return $this; }