You are here

protected function BenchmarkCommand::RebuildCache in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Command/BenchmarkCommand.php \Drupal\webprofiler\Command\BenchmarkCommand::RebuildCache()
  2. 8 webprofiler/src/Command/BenchmarkCommand.php \Drupal\webprofiler\Command\BenchmarkCommand::RebuildCache()
  3. 8.2 webprofiler/src/Command/BenchmarkCommand.php \Drupal\webprofiler\Command\BenchmarkCommand::RebuildCache()

Rebuilds Drupal cache.

1 call to BenchmarkCommand::RebuildCache()
BenchmarkCommand::execute in webprofiler/src/Command/BenchmarkCommand.php

File

webprofiler/src/Command/BenchmarkCommand.php, line 264

Class

BenchmarkCommand
Class BenchmarkCommand.

Namespace

Drupal\webprofiler\Command

Code

protected function RebuildCache() {
  require_once DRUPAL_ROOT . '/core/includes/utility.inc';
  $kernelHelper = $this
    ->getHelper('kernel');
  $classLoader = $kernelHelper
    ->getClassLoader();
  $request = $kernelHelper
    ->getRequest();
  drupal_rebuild($classLoader, $request);
}