Components_Dependencies::getOutput PHP Method

getOutput() public method

Returns the output handler.
public getOutput ( ) : Components_Output
return Components_Output The output handler.
    public function getOutput();

Usage Example

Example #1
0
 /**
  * Run a sequence of release tasks.
  *
  * @param array                $sequence The task sequence.
  * @param Components_Component $component The component to be released.
  * @param array                $options  Additional options.
  *
  * @return NULL
  */
 public function run(array $sequence, Components_Component $component, $options = array())
 {
     $this->_options = $options;
     $this->_sequence = $sequence;
     $task_sequence = array();
     foreach ($sequence as $name) {
         $task_sequence[] = $this->getTask($name, $component);
     }
     $errors = array();
     $selected_tasks = array();
     foreach ($task_sequence as $task) {
         $task_errors = $task->validate($options);
         if (!empty($task_errors)) {
             if ($task->skip($options)) {
                 $this->_dependencies->getOutput()->warn(sprintf("Deactivated task \"%s\":\n\n%s", $task->getName(), join("\n", $task_errors)));
             } else {
                 $errors = array_merge($errors, $task_errors);
             }
         } else {
             $selected_tasks[] = $task;
         }
     }
     if (!empty($errors)) {
         throw new Components_Exception("Unable to release:\n\n" . join("\n", $errors));
     }
     foreach ($selected_tasks as $task) {
         $task->run($options);
     }
 }
All Usage Examples Of Components_Dependencies::getOutput