Пример #1
0
 function bootstrap_drupal_full()
 {
     if (!drush_get_context('DRUSH_QUIET', FALSE)) {
         ob_start();
     }
     drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
     if (!drush_get_context('DRUSH_QUIET', FALSE)) {
         ob_end_clean();
     }
     parent::bootstrap_drupal_full();
 }
Пример #2
0
 /**
  * {@inheritdoc}
  */
 public function terminate()
 {
     parent::terminate();
     if ($this->kernel) {
         $response = Response::create('');
         $this->kernel->terminate($this->request, $response);
     }
 }
Пример #3
0
 function bootstrap_drupal_full()
 {
     if (!drush_get_context('DRUSH_QUIET', FALSE)) {
         ob_start();
     }
     drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
     if (!drush_get_context('DRUSH_QUIET', FALSE)) {
         ob_end_clean();
     }
     // Unset drupal error handler and restore drush's one.
     restore_error_handler();
     parent::bootstrap_drupal_full();
 }