Skip to content

Commit

Permalink
Taking rebuild container out just caused other problems; $kernel->inv…
Browse files Browse the repository at this point in the history
…alidateContainer() works better, though.
  • Loading branch information
greg-1-anderson committed May 6, 2016
1 parent cd76b1b commit 7a2caf0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/Drush/Boot/DrupalBoot8.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,15 @@ function bootstrap_drupal_configuration() {
function bootstrap_drupal_full() {
drush_log(dt('About to bootstrap the Drupal 8 Kernel.'), LogLevel::DEBUG);
// TODO: do we need to do ob_start any longer?
// if (!drush_get_context('DRUSH_QUIET', FALSE)) {
// ob_start();
// }
if (!drush_get_context('DRUSH_QUIET', FALSE)) {
ob_start();
}
$this->kernel->invalidateContainer();
$this->kernel->boot();
$this->kernel->prepareLegacyRequest($this->request);
// if (!drush_get_context('DRUSH_QUIET', FALSE)) {
// ob_end_clean();
// }
if (!drush_get_context('DRUSH_QUIET', FALSE)) {
ob_end_clean();
}
drush_log(dt('Finished bootstraping the Drupal 8 Kernel.'), LogLevel::DEBUG);

parent::bootstrap_drupal_full();
Expand Down

0 comments on commit 7a2caf0

Please sign in to comment.