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

Handler formatter example was using wrong defined service#9000

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

Closed
gregsomers wants to merge1 commit intosymfony:2.8fromgregsomers:patch-1

Conversation

@gregsomers
Copy link
Contributor

The service class passed to the formatter in the example handler was using the processor service instead of the formatter service. It should instead usemonolog.formatter.session_request, otherwise monolog complains that the class does not implement interfaceMonolog\Formatter\FormatterInterface.

@javiereguiluz
Copy link
Member

This looks OK ... but Monolog was always too confusing to me, so I'll wait for other reviews before merging. Also, if this is the correct change, we should update the XML and PHP config below too. Thanks!

path:'%kernel.logs_dir%/%kernel.environment%.log'
level:debug
formatter:app.logger.session_request_processor
formatter:monolog.formatter.session_request
Copy link
Contributor

Choose a reason for hiding this comment

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

This change looks correct to me. Can you also update the other configuration formats? They seem to have the same incorrect value at the formatter option.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@iltar no problem, I've updated the other configuration formats

The service class passed to the formatter in the example handler was using the processor service instead of the formatter service. It should instead use `monolog.formatter.session_request`, otherwise monolog complains that the class does not implement interface `Monolog\Formatter\FormatterInterface`.
@javiereguiluz
Copy link
Member

@gregsomers thanks for fixing this! We've merged it on 2.7 branch, which is the oldest maintained branch that contains the bug and we'll "merge it up" on the other branches. GitHub may make it look as closed instead of merged ... but it's merged. Thanks!

javiereguiluz added a commit that referenced this pull requestJan 29, 2018
… (gregsomers)This PR was submitted for the 2.8 branch but it was merged into the 2.7 branch instead (closes#9000).Discussion----------Handler formatter example was using wrong defined serviceThe service class passed to the formatter in the example handler was using the processor service instead of the formatter service. It should instead use `monolog.formatter.session_request`, otherwise monolog complains that the class does not implement interface `Monolog\Formatter\FormatterInterface`.Commits-------447844a Handler formatter example was using wrong defined service
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@linaorilinaorilinaori approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

4 participants

@gregsomers@javiereguiluz@linaori@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp