protected function BenchmarkCommand::RebuildCache in Devel 8.2
Same name and namespace in other branches
- 8.3 webprofiler/src/Command/BenchmarkCommand.php \Drupal\webprofiler\Command\BenchmarkCommand::RebuildCache()
- 8 webprofiler/src/Command/BenchmarkCommand.php \Drupal\webprofiler\Command\BenchmarkCommand::RebuildCache()
- 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\CommandCode
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);
}