/** * Set defaults * * @param Vocabulary $vocabulary */ public function setDefaults($vocabulary) { $vocabulary->setBaseDomain($this->getRequest()->getUriPrefix() . '/uri/'); $vocabulary->setLanguage(sfConfig::get('app_default_language')); $vocabulary->setProfileId(sfConfig::get('app_vocabulary_profile_id')); parent::setDefaults($vocabulary); }