8000 [Console] Shell doesn't clear TableHelper · Issue #9950 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] Shell doesn't clear TableHelper #9950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sirian opened this issue Jan 6, 2014 · 2 comments
Closed

[Console] Shell doesn't clear TableHelper #9950

sirian opened this issue Jan 6, 2014 · 2 comments
Labels

Comments

@sirian
Copy link
Contributor
sirian commented Jan 6, 2014

Symfony shell should clear TableHelper data when command execution finished.

Bug can be reproduced with this command:

TestCommand:

protected function execute(InputInterface $input, OutputInterface $output)
{
    $table = $this->getHelper('table');
    $table->addRow([1, 2, 3]);
    $table->render($output);
}

Shell execution:

Symfony > test
+---+---+---+
| 1 | 2 | 3 |
+---+---+---+
Symfony > test
+---+---+---+
| 1 | 2 | 3 |
| 1 | 2 | 3 |
+---+---+---+
Symfony > test
+---+---+---+
| 1 | 2 | 3 |
| 1 | 2 | 3 |
| 1 | 2 | 3 |
+---+---+---+
Symfony >
@cordoval
Copy link
Contributor
cordoval commented Jan 6, 2014

this has a duplicate already #9788 please close this

@sirian
Copy link
Contributor Author
sirian commented Jan 6, 2014

ok, close this one

@sirian sirian closed this as completed Jan 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0