- π«π·France andypost
Created 11.x follow-up to π clean-up outdated mentions of prepareLegacyRequest Active
/**
* Prepare the kernel for handling a request without handling the request.
[..]
* @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Only used by
* legacy front-controller scripts.
*/
The one line summary is not useful information, and the deprecation message is not true (which is kind of hilarious: #2556273-4: Fix @deprecation docs of Drupal\Core\DrupalKernelInterface::prepareLegacyRequest() β )
prepareLegacyRequest()
is used extensively by the testing system.
It's also used by drupal_install_system()
and drupal_rebuild()
.
Found 13 matches of prepareLegacyRequest in 11 files.
authorize.php
$kernel->prepareLegacyRequest($request); [position 68:12]
install.core.inc
// \Drupal\Core\DrupalKernel::prepareLegacyRequest() since normal routing [position 474:33]
install.inc
$kernel->prepareLegacyRequest($request); [position 619:12]
utility.inc
$kernel->prepareLegacyRequest($request); [position 43:12]
DrupalKernel.php
public function prepareLegacyRequest(Request $request) { [position 707:19]
DrupalKernelInterface.php
public function prepareLegacyRequest(Request $request); [position 128:19]
FunctionalTestSetupTrait.php
$this->kernel->prepareLegacyRequest($request); [position 389:20]
$this->kernel->prepareLegacyRequest(\Drupal::request()); [position 442:20]
// DrupalKernel::prepareLegacyRequest() -> DrupalKernel::boot() but that [position 446:24]
InstallerTestBase.php
$this->kernel->prepareLegacyRequest($request); [position 151:22]
run-tests.sh
$kernel->prepareLegacyRequest($request); [position 58:12]
KernelTestBase.php
$kernel->prepareLegacyRequest($request); [position 369:14]
BrowserTestBase.php
$kernel->prepareLegacyRequest($request); [position 1019:14]
Remove the usages and replace them with calls to DrupalKernel::boot()
and DrupalKernel::preHandle()
.
Fixed
8.8 β°οΈ
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Created 11.x follow-up to π clean-up outdated mentions of prepareLegacyRequest Active