Пример #1
0
 public function preExecute()
 {
     $this->configuration = new sfGuardUserGeneratorConfiguration();
     if (!$this->getUser()->hasCredential($this->configuration->getCredentials($this->getActionName()))) {
         $this->forward(sfConfig::get('sf_secure_module'), sfConfig::get('sf_secure_action'));
     }
     $this->dispatcher->notify(new sfEvent($this, 'admin.pre_execute', array('configuration' => $this->configuration)));
     $this->helper = new sfGuardUserGeneratorHelper();
     parent::preExecute();
 }