protected function BaseCommand::bootstrapDrupal in Automatic Updates 8
Bootstrap Drupal.
Parameters
\Symfony\Component\Console\Input\InputInterface $input: The input.
1 call to BaseCommand::bootstrapDrupal()
- BaseCommand::execute in src/
Command/ BaseCommand.php - Executes the current command.
File
- src/
Command/ BaseCommand.php, line 58
Class
- BaseCommand
- Base command class.
Namespace
Drupal\automatic_updates\CommandCode
protected function bootstrapDrupal(InputInterface $input) {
$kernel = new DrupalKernel('prod', $this->classLoader);
$script_filename = $input
->getOption('script-filename');
$base_url = $input
->getOption('base-url');
$base_path = $input
->getOption('base-path');
$server = [
'SCRIPT_FILENAME' => $script_filename,
'SCRIPT_NAME' => $base_url,
];
$request = Request::create($base_path, 'GET', [], [], [], $server);
$kernel
->handle($request);
}