Exemplo n.º 1
0
 /**
  * Retrives the repository type and the repository object.
  */
 public function preExecute()
 {
     $this->type = $this->getRequest()->getPostParameter('rep', sfConfig::get('app_repository_type'));
     $repository_factory = RepositoryFactory::init();
     $this->repository = $repository_factory->build($this->type, sfConfig::get('app_repository_' . $this->type));
     $log_command_factory = LogCommandFactory::init();
     $this->log_command = $log_command_factory->build($this->type);
 }