コード例 #1
0
 /**
  * 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();
 }
コード例 #2
0
 /**
  * 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();
 }
コード例 #3
0
 /**
  * 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();
 }
コード例 #4
0
ファイル: Application.php プロジェクト: plan2net/TYPO3.CMS
 /**
  * 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();
 }
コード例 #5
0
ファイル: Application.php プロジェクト: plan2net/TYPO3.CMS
 /**
  * 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();
 }
コード例 #6
0
ファイル: Application.php プロジェクト: Gregpl/TYPO3.CMS
 /**
  * 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();
 }
コード例 #7
0
 /**
  * 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();
 }