use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
-use Psr\Log\LoggerInterface;
use Drupal\Core\DrupalKernel;
use Drush\Drupal\DrupalKernel as DrushDrupalKernel;
-use Drush\Drupal\DrushServiceModfier;
-use Symfony\Component\DependencyInjection\Reference;
+use Drush\Drupal\DrushServiceModifier;
use Drush\Log\LogLevel;
$this->kernel = DrushDrupalKernel::createFromRequest($this->request, $classloader, 'prod');
}
// @see Drush\Drupal\DrupalKernel::addServiceModifier()
- $this->kernel->addServiceModifier(new DrushServiceModfier());
+ $this->kernel->addServiceModifier(new DrushServiceModifier());
// Unset drupal error handler and restore Drush's one.
restore_error_handler();
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)) {