Skip to content

Applied the new styles to the router: commands #14132

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

Conversation

javiereguiluz
Copy link
Member

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

Here are some screenshots comparing these commands before/after.

debug:router

debug_router_all

debug:router --show-controllers

debug_router_all_and_controllers

debug:router admin_post_delete

debug_router_route

router:match - no match

router_match_no_match

router:match - almost match

router_match_almost

router:match - exact match

router_match_exact

Deprecated router:dump-apache

dump_apache

@kbond
Copy link
Member

kbond commented Mar 31, 2015

Nice work! Let me know if you need help with any. Perhaps a checklist would be useful.

@javiereguiluz
Copy link
Member Author

@kbond here it is the checklist #14138

{
$requirements = $route->getRequirements();

$output->table(
Copy link
Member

Choose a reason for hiding this comment

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

there is no ->table() method in the OutputInterface. so the typehint looks weird

fabpot added a commit that referenced this pull request Apr 7, 2015
…s methods (ogizanagi)

This PR was merged into the 3.0-dev branch.

Discussion
----------

[3.0][Console][OutputStyle] Implements verbosity levels methods

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A - Travis build for #14032
| License       | MIT

Implements the verbosity level methods from `OutputInterface` for the new `OutputStyle` abstract class in 3.0 branch.
Fixes Travis builds with `deps=high` env var for #14032 PR and future console style updates.

=========
Related to: #14032, #14057, #14138, #14132, #14172, ...

Commits
-------

a30f507 [Console] [OutputStyle] Implements verbosity methods
@Tobion
Copy link
Contributor

Tobion commented Apr 8, 2015

@javiereguiluz the screenshots show a requirement: _method: DELETE but actually that requirement should be ignored. According to the code it should already be removed, maybe it's just that the screenshots are not current?
Otherwise looks good to me 👍

array_unshift($description, '<comment>Name</comment> '.$options['name']);
array_unshift($description, $this->formatSection('router', sprintf('Route "%s"', $options['name'])));
if (isset($options['output_helper'])) {
$options['output_helper']->table($tableHeaders, $tableRows);
Copy link
Contributor

Choose a reason for hiding this comment

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

This option doesn't seem to be used?!

@fabpot
Copy link
Member

fabpot commented Sep 14, 2015

What's the status of this PR?

@javiereguiluz
Copy link
Member Author

I've updated this PR to remove the unneeded option pointed by @Tobion.

@fabpot
Copy link
Member

fabpot commented Sep 28, 2015

Thank you @javiereguiluz.

@fabpot fabpot closed this in c2cfbcf Sep 28, 2015
fabpot added a commit that referenced this pull request Sep 30, 2015
This PR was merged into the 2.8 branch.

Discussion
----------

[FrameworkBundle] Fix tests

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

#14132 missed tests updates

Commits
-------

5549f4c [FrameworkBundle] Fix tests
@fabpot fabpot mentioned this pull request Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants