public function remove($themeName) { $theme = DbFinder::from('W3sProject')->where('ProjectName', $themeName)->findOne(); if ($theme != null) { $theme->delete(); w3sCommonFunctions::removeDirectory(sfConfig::get('app_w3s_web_themes_dir') . DIRECTORY_SEPARATOR . $themeName); $this->unpublishAsset($themeName); } }