public function clearAction() { $dir = $this->getParam('path', ''); $this->galleryService->cleanDirectory(str_replace('|', '/', $dir)); $this->forward('gallery', 'index', 'index'); }