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