protected function syncViewDirectory($dir)
{
if ($this->viewPath === $this->appPath . '/view') {
return;
}
$source = $this->appPath . '/view/' . $dir;
$target = $this->viewPath . '/' . $dir;
// Mirror source and destination, overwrite existing file and clean up removed files
$this->filesystem->mirror($source, $target, null, ['override' => true, 'delete' => true]);
}