Skip to content

Commit

Permalink
minor #3775 Fixed variable naming (peterrehm)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.4 branch but it was merged into the 2.3 branch instead (closes #3775).

Discussion
----------

Fixed variable naming

Changed $app into $this since this is used in the other helpers as well and $app is not available inside a console command.

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 2.3+
| Fixed tickets | -

Commits
-------

66581a6 Fixed variable naming
  • Loading branch information
weaverryan committed Apr 12, 2014
2 parents 703c2a6 + cadcca9 commit a5471b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/console/helpers/tablehelper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ When building a console application it may be useful to display tabular data:
To display a table, use the :class:`Symfony\\Component\\Console\\Helper\\TableHelper`,
set headers, rows and render::

$table = $app->getHelperSet()->get('table');
$table = $this->getHelperSet()->get('table');
$table
->setHeaders(array('ISBN', 'Title', 'Author'))
->setRows(array(
Expand Down

0 comments on commit a5471b3

Please sign in to comment.