You are here

protected function BenchmarkCommand::RebuildCache in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/Command/BenchmarkCommand.php \Drupal\webprofiler\Command\BenchmarkCommand::RebuildCache()
  2. 8.2 webprofiler/src/Command/BenchmarkCommand.php \Drupal\webprofiler\Command\BenchmarkCommand::RebuildCache()
  3. 4.x 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
Executes the current command.

File

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

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);
}