/** * 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->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 * * @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(); }