/** * Handles a frontend request based on the _GP "eID" variable. * * @return void */ public function handleRequest() { // Timetracking started $configuredCookieName = trim($GLOBALS['TYPO3_CONF_VARS']['BE']['cookieName']); if (empty($configuredCookieName)) { $configuredCookieName = 'be_typo_user'; } if ($_COOKIE[$configuredCookieName]) { $GLOBALS['TT'] = new TimeTracker(); } else { $GLOBALS['TT'] = new NullTimeTracker(); } $GLOBALS['TT']->start(); // Hook to preprocess the current request if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest'])) { foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest'] as $hookFunction) { $hookParameters = array(); GeneralUtility::callUserFunction($hookFunction, $hookParameters, $hookParameters); } unset($hookFunction); unset($hookParameters); } // Remove any output produced until now $this->bootstrap->endOutputBufferingAndCleanPreviousOutput(); require EidUtility::getEidScriptPath(); $this->bootstrap->shutdown(); exit; }
/** * Set up the application and shut it down afterwards * Failsafe minimal setup mode for the install tool * Does not call "run()" therefore * * @param callable $execute * @return void */ public function run(callable $execute = null) { $this->bootstrap->handleRequest(\TYPO3\CMS\Core\Http\ServerRequestFactory::fromGlobals()); if ($execute !== null) { call_user_func($execute); } $this->bootstrap->shutdown(); }
/** * Set up the application and shut it down afterwards * * @param callable $execute * @return void */ public function run(callable $execute = null) { $this->bootstrap->handleRequest(new \Symfony\Component\Console\Input\ArgvInput()); if ($execute !== null) { call_user_func($execute); } $this->bootstrap->shutdown(); }
/** * Run the Symfony Console application in this TYPO3 application * * @param callable $execute * @return void */ public function run(callable $execute = null) { $this->bootstrap->handleRequest(new ArgvInput()); if ($execute !== null) { call_user_func($execute); } $this->bootstrap->shutdown(); }
/** * Set up the application and shut it down afterwards * * @param callable $execute * @return void */ public function run(callable $execute = NULL) { $this->bootstrap->run(); if ($execute !== NULL) { if ($execute instanceof \Closure) { $execute->bindTo($this); } call_user_func($execute); } $this->bootstrap->shutdown(); }
/** * Set up the application and shut it down afterwards * * @param callable $execute * @return void */ public function run(callable $execute = NULL) { $this->bootstrap->handleRequest(new \Symfony\Component\Console\Input\ArgvInput()); if ($execute !== NULL) { if ($execute instanceof \Closure) { $execute->bindTo($this); } call_user_func($execute); } $this->bootstrap->shutdown(); }
/** * Set up the application and shut it down afterwards * * @param callable $execute * @return void */ public function run(callable $execute = NULL) { $this->bootstrap->handleRequest(\TYPO3\CMS\Core\Http\ServerRequestFactory::fromGlobals()); if ($execute !== NULL) { if ($execute instanceof \Closure) { $execute->bindTo($this); } call_user_func($execute); } $this->bootstrap->shutdown(); }
/** * Set up the application and shut it down afterwards * Failsafe minimal setup mode for the install tool * Does not call "run()" therefore * * @param callable $execute * @return void */ public function run(callable $execute = NULL) { $this->bootstrap->startOutputBuffering()->loadConfigurationAndInitialize(FALSE, \TYPO3\CMS\Core\Package\FailsafePackageManager::class)->handleRequest(); if ($execute !== NULL) { if ($execute instanceof \Closure) { $execute->bindTo($this); } call_user_func($execute); } $this->bootstrap->shutdown(); }
/** * Set up the application and shut it down afterwards * * @param callable $execute * @return void */ public function run(callable $execute = null) { $this->bootstrap->handleRequest($this->request); if ($execute !== null) { if ($execute instanceof \Closure) { $execute->bindTo($this); } call_user_func($execute); } $this->bootstrap->shutdown(); }
/** * Set up the application and shut it down afterwards * * @param callable $execute * @return void */ public function run(callable $execute = null) { $this->request = \TYPO3\CMS\Core\Http\ServerRequestFactory::fromGlobals(); // see below when this option is set and Bootstrap::defineTypo3RequestTypes() for more details if (TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX) { $this->request = $this->request->withAttribute('isAjaxRequest', true); } elseif (isset($this->request->getQueryParams()['M'])) { $this->request = $this->request->withAttribute('isModuleRequest', true); } $this->bootstrap->handleRequest($this->request); if ($execute !== null) { call_user_func($execute); } $this->bootstrap->shutdown(); }