public function flushCaches($all = false) {
    $dir = $this->kernel->getCacheDir();
    if ($all) {
      $dir .= '/..';
    }
    $fs = new Filesystem();
    $fs->remove(realpath($dir));
  }
public function flushCaches($all = false) {
    $dir = $this->kernel->getCacheDir();
    if ($all) {
      $dir .= '/..';
    }
    $fs = new Filesystem();
    $fs->remove(realpath($dir));
  }
public function flushCaches ( $ all = false ) { $ dir = $ this -> kernel -> getCacheDir ( ) ; if ( $ all ) { $ dir .= '/..' ; } $ fs = new Filesystem ( ) ; $ fs -> remove ( realpath ( $ dir ) ) ; }
Cleanup cache files
Cleanup cache files