/**
  * installCron
  *
  * Install the task as a cron job
  *
  * @param array $options An array of key/value pairs where key is the name of
  *                       the option and the value is the value that was set on
  *                       the command line
  * @access protected
  * @return integer
  */
 protected function installCron($options)
 {
     $scriptOptions = $this->unsetOptions($options, array('install', 'cronpath', 'crontime'));
     $scriptName = $this->scriptPrefix . '_' . $this->namespace . '_' . $this->name;
     $sfTaskCall = 'symfony ' . $this->namespace . ':' . $this->name . optionsHelper::makeOptionsString($scriptOptions, $this->options);
     uCron::custom($scriptName, $options['crontime'], $sfTaskCall, $options['cronpath']);
     return 0;
 }
 private function installCron($arg, $opt)
 {
     $scriptName = $opt['cronprefix'] . 'backup_project';
     $sfTaskCall = 'symfony util:backup ' . $arg['path'] . ' ' . $arg['stemname'] . ' --env=' . $opt['env'] . ' --application=' . $opt['application'] . ' --compress --overwrite --keepnfiles=' . $opt['keepnfiles'];
     uCron::custom($scriptName, $opt['crontime'], $sfTaskCall, $opt['cronpath']);
 }