Skip to content
Snippets Groups Projects

Use service destruction to fix the bug

Closed Alex Pott requested to merge issue/drupal-3405976:3405976-minimal-approach into 11.x
2 unresolved threads
Files
11
@@ -170,6 +170,9 @@ function install_drupal($class_loader, $settings = [], callable $callback = NULL
install_goto($finish_url);
}
}
elseif (\Drupal::hasContainer() && \Drupal::hasRequest()) {
\Drupal::service('kernel')->terminate(\Drupal::request(), new Response());
}
}
/**
@@ -652,7 +655,7 @@ function install_run_task($task, &$install_state) {
\Drupal::request()->getSession()->save();
}
// Send the response.
$response->send();
_install_send_response($response);
exit;
}
}
@@ -670,7 +673,7 @@ function install_run_task($task, &$install_state) {
\Drupal::request()->getSession()->save();
}
// Send the response.
$output->send();
_install_send_response($output);
exit;
}
// The task is complete when we try to access the batch page and receive
@@ -1069,7 +1072,7 @@ function install_display_output($output, $install_state) {
'ETag' => '"' . $request_time . '"',
];
$response->headers->add($default_headers);
$response->send();
_install_send_response($response);
exit;
}
Loading