Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

ro0NL
Copy link
Contributor

@ro0NL ro0NL commented Jun 24, 2016

Q A
Branch? 2.7
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets ~
License MIT
Doc PR ~

Alternative approach, ie BC, for #19136 (i prefer that one though, as it also fixes #19123 )

$table = new Table($this);
$table->setHeaders($headers);
$table->setRows($rows);
$table->setStyle('symfony-style-guide');
$table->setStyle((clone Table::getStyleDefinition('symfony-style-guide'))->setCellHeaderFormat('<info>%s</info>'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this syntax cannot be used in Symfony 2.7, because it works only for PHP 5.4+, and Symfony 2.3 still supports PHP 5.3

@fabpot
Copy link
Member

fabpot commented Jun 28, 2016

👍

@fabpot
Copy link
Member

fabpot commented Jun 29, 2016

Thank you @ro0NL.

fabpot added a commit that referenced this pull request Jun 29, 2016
This PR was squashed before being merged into the 2.7 branch (closes #19173).

Discussion
----------

[Console] Decouple SymfonyStyle from TableCell

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | ~
| License       | MIT
| Doc PR        | ~

Alternative approach, ie BC, for #19136 (i prefer that one though, as it also _fixes_ #19123 )

Commits
-------

51f59d6 [Console] Decouple SymfonyStyle from TableCell
@fabpot fabpot closed this Jun 29, 2016
nicolas-grekas added a commit that referenced this pull request Jun 29, 2016
This PR was merged into the 2.8 branch.

Discussion
----------

[FrameworkBundle] Fix fixtures

| Q             | A
| ------------- | ---
| Branch?       | 2.8
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #19173 #19223
| License       | MIT
| Doc PR        | -

Commits
-------

d175477 [FrameworkBundle] Fix fixtures
@ro0NL ro0NL deleted the console/decouple-symfonystyle-tablecell branch June 29, 2016 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants