Skip to content

Commit a5549f3

Browse files
committed
minor symfony#21607 [Console] Update Cursor helper to use injected argument (mindaugasw)
This PR was merged into the 7.4 branch. Discussion ---------- [Console] Update Cursor helper to use injected argument | Q | A | |---|---| | Feature PR | symfony/symfony#62068 | | PR author(s) | `@yceruto` | | Merged in | 7.4 | | Issue | symfony#21502 | Fixes symfony#21502 Update [Cursor helper](https://symfony.com/doc/current/components/console/helpers/cursor.html) docs to use injected Cursor argument. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- dfcde17 [Console] Update Cursor helper to use injected argument
2 parents 7b04c5b + dfcde17 commit a5549f3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/console/helpers/cursor.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@ of the output:
2222
{
2323
// ...
2424
25-
public function __invoke(OutputInterface $output): int
25+
public function __invoke(Cursor $cursor, OutputInterface $output): int
2626
{
2727
// ...
2828
29-
$cursor = new Cursor($output);
30-
3129
// moves the cursor to a specific column (1st argument) and
3230
// row (2nd argument) position
3331
$cursor->moveToPosition(7, 11);

0 commit comments

Comments
 (0)