Cron/CronHandler.php
public function addCron(CronInterface $cron, $alias, $priority, $arguments)
    {
        if (!isset($this->crons[$priority])) {
            $this->crons[$priority] = array();
        }
        $cron->setAlias($alias);
        $cron->addArguments($arguments);
        $cron->addPriority($priority);
        $this->crons[$priority][$alias] = $cron;
    }
public function addCron(CronInterface $cron, $alias, $priority, $arguments)
    {
        if (!isset($this->crons[$priority])) {
            $this->crons[$priority] = array();
        }
        $cron->setAlias($alias);
        $cron->addArguments($arguments);
        $cron->addPriority($priority);
        $this->crons[$priority][$alias] = $cron;
    }
public function addCron ( CronInterface $ cron , $ alias , $ priority , $ arguments ) { if ( ! isset ( $ this -> crons [ $ priority ] ) ) { $ this -> crons [ $ priority ] = array ( ) ; } $ cron -> setAlias ( $ alias ) ; $ cron -> addArguments ( $ arguments ) ; $ cron -> addPriority ( $ priority ) ; $ this -> crons [ $ priority ] [ $ alias ] = $ cron ; }
Add cron to crons list

@param CronInterface $cron cron
@param string $alias cron alias
@param integer $priority cron priority
@param string $arguments cron arguments
Add cron to crons list