/** * @test */ public function initializeBasicErrorReportingExcludesDeprecated() { $backupReporting = error_reporting(); $this->fixture->_call('initializeBasicErrorReporting'); $actualReporting = error_reporting(); error_reporting($backupReporting); $this->assertEquals(0, $actualReporting & E_DEPRECATED); }
/** * 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; }
/** * Gets the current GIT revision and branch * * @return void */ protected function getGitRevision() { if (!StringUtility::endsWith(TYPO3_version, '-dev') || \TYPO3\CMS\Core\Core\SystemEnvironmentBuilder::isFunctionDisabled('exec')) { return; } // check if git exists CommandUtility::exec('git --version', $_, $returnCode); if ((int) $returnCode !== 0) { // git is not available return; } $revision = trim(CommandUtility::exec('git rev-parse --short HEAD')); $branch = trim(CommandUtility::exec('git rev-parse --abbrev-ref HEAD')); if (!empty($revision) && !empty($branch)) { $this->systemInformation[] = array('title' => htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.gitrevision')), 'value' => sprintf('%s [%s]', $revision, $branch), 'icon' => $this->iconFactory->getIcon('sysinfo-git', Icon::SIZE_SMALL)->render()); } }
/** * 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; }