Пример #1
0
 /**
  * Gets a configured output writer.
  * @return Writer
  */
 private function getOutputWriter()
 {
     if ($this->useFile) {
         $of = $this->getOutfile();
         if (!$of) {
             $of = new PhingFile($this->formatter->getPreferredOutfile());
         }
         return new FileWriter($of, $this->append);
     } else {
         return $this->getDefaultOutput();
     }
 }