Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FrameworkBundle] container:debug : list services if no service match exacly the name argument#11339

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@agallou
Copy link
Contributor

QA
Bug fix?no
New feature?yes
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#11303
LicenseMIT
Doc PR

If we launch the command "container:debug log" and there is no
service nammed log, it will print something like this :

[0] logger[1] monolog.handler.console[2] monolog.handler.debug

After the service has been chosen, usual container:debug informations
are displayed.

Choose a reason for hiding this comment

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

Should befindServiceIdsLike (capital I)

Copy link
Member

Choose a reason for hiding this comment

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

Looks like the indentation of this block is wrong.

@agallouagallouforce-pushed thecontainer_debug_search_services branch fromce1acd3 to7f866c3CompareSeptember 7, 2014 17:49
Copy link
Member

Choose a reason for hiding this comment

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

This can just be$this->getHelper('question');

@weaverryan
Copy link
Member

I like the approach! It's even easier than I was imagining because it doesn't make you re-run the command to find out more about the service you might be looking for.

Copy link
Member

Choose a reason for hiding this comment

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

you should also return early in case the input is not interactive (or you need to set$name as the default in your Question)

@agallouagallouforce-pushed thecontainer_debug_search_services branch from7f866c3 to22f7151CompareSeptember 25, 2014 21:50
@weaverryan
Copy link
Member

FYI - The PR has been updated after Stof's comment.

Copy link
Member

Choose a reason for hiding this comment

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

given that service ids are always lowercase internally in Symfony, you should either usestripos, or even better lowercase$name (which can be done outside the loop)

… exacly the name argument| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |symfony#11303| License       | MIT| Doc PR        |If we launch the command "container:debug log" and there is noservice nammed log, it will print something like this :```[0] logger[1] monolog.handler.console[2] monolog.handler.debug```After the service has been chosen, usual container:debug informationsare displayed.
@agallouagallouforce-pushed thecontainer_debug_search_services branch from22f7151 to16201b6CompareOctober 2, 2014 06:19
@agallou
Copy link
ContributorAuthor

I've updated the PR to lowercase the searched service name according to@stof comment

@fabpot
Copy link
Member

Thank you@agallou.

@fabpotfabpot merged commit16201b6 intosymfony:masterOct 2, 2014
fabpot added a commit that referenced this pull requestOct 2, 2014
…o service match exacly the name argument (agallou)This PR was merged into the 2.6-dev branch.Discussion----------[FrameworkBundle] container:debug : list services if no service match exacly the name argument| Q             | A| ------------- | ---| Bug fix?      | no| New feature?  | yes| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#11303| License       | MIT| Doc PR        |If we launch the command "container:debug log" and there is noservice nammed log, it will print something like this :```[0] logger[1] monolog.handler.console[2] monolog.handler.debug```After the service has been chosen, usual container:debug informationsare displayed.Commits-------16201b6 [FrameworkBundle] container:debug : list services if no service match exacly the name argument
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@agallou@weaverryan@fabpot@stefanosala@stof@romainneutron

[8]ページ先頭

©2009-2025 Movatter.jp