public function clearMenuCache() { if (sfSympalContext::hasInstance() && ($menu = $this->getMenu())) { return sfSympalContext::getInstance()->getService('menu_manager')->clearCache($menu->getCacheKey()); } else { return false; } }
public function postSave($event) { if (sfSympalContext::hasInstance()) { return $this->clearMenuCache(); } }