浏览代码

[Console] added writeln to the OutputInterface

Andy Stanberry 14 年之前
父节点
当前提交
0ef67112b2
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      src/Symfony/Component/Console/Output/OutputInterface.php

+ 8 - 0
src/Symfony/Component/Console/Output/OutputInterface.php

@@ -29,6 +29,14 @@ interface OutputInterface
      */
      */
     function write($messages, $newline = false, $type = 0);
     function write($messages, $newline = false, $type = 0);
 
 
+    /**
+     * Writes a message to the output and adds a newline at the end.
+     *
+     * @param string|array $messages The message as an array of lines of a single string
+     * @param integer      $type     The type of output
+     */
+    function writeln($messages, $type = 0);
+
     /**
     /**
      * Sets the verbosity of the output.
      * Sets the verbosity of the output.
      *
      *