Skip to content

Commit

Permalink
Fixes #4270: Call to undefined method (#4271)
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekdj authored Nov 29, 2021
1 parent b957007 commit 21342d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Utils/DrupalApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ public function drupal_rebuild($class_loader, \Symfony\Component\HttpFoundation\
$kernel->invalidateContainer();

// Prepare a NULL request.
$kernel->prepareLegacyRequest($request);
if (method_exists($kernel, 'prepareLegacyRequest')) {
$kernel->prepareLegacyRequest($request);
}

foreach (Cache::getBins() as $bin) {
$bin->deleteAll();
Expand Down

0 comments on commit 21342d8

Please sign in to comment.