8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 528857d commit f9b9c10Copy full SHA for f9b9c10
console.rst
@@ -101,6 +101,10 @@ messages to the console)::
101
'',
102
]);
103
104
+ // the value returned by someMethod() can be an iterator (https://secure.php.net/iterator)
105
+ // that generates and returns the messages with the 'yield' PHP keyword
106
+ $output->writeln($this->someMethod());
107
+
108
// outputs a message followed by a "\n"
109
$output->writeln('Whoa!');
110
@@ -109,6 +113,10 @@ messages to the console)::
113
$output->write('create a user.');
114
}
111
115
116
+.. versionadded:: 4.1
117
+ The support of PHP iterators in the ``write()`` and ``writeln()`` methods
118
+ was introduced in Symfony 4.1.
119
112
120
Now, try executing the command:
121
122
.. code-block:: terminal
0 commit comments