Pārlūkot izejas kodu

[Console] added writeln to the OutputInterface

Andy Stanberry 14 gadi atpakaļ
vecāks
revīzija
0ef67112b2

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

@@ -29,6 +29,14 @@ interface OutputInterface
      */
     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.
      *