Example #1
0
File: Cli.php Project: hunde/bsc
 /**
  * Executes the task with the specified _prepared_ arguments
  * 
  * @param object $task Doctrine_Task
  * @param array $preparedArguments
  * @throws Doctrine_Cli_Exception If required arguments are missing
  */
 protected function executeTask(Doctrine_Task $task, array $preparedArguments)
 {
     $task->setArguments($preparedArguments);
     if (!$task->validate()) {
         throw new Doctrine_Cli_Exception('Required arguments missing');
     }
     $task->execute();
 }