-
-
Notifications
You must be signed in to change notification settings - Fork 240
Do not require raven.dsn when a client_id is specified #95
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
Conversation
|
tests are broken |
|
And the right target branch is master. Older branches are not maintained (as the master branch supports Symfony 2.3+) |
I'm not sure to understand this comment. the target branch is master. |
It was an answer to your comment |
|
Oh ;) I forgot that ;) Thanks. |
23ce7bf to
25c8b67
Compare
|
I fixed tests. |
|
Can you add a new test to cover this behavior (should go near https://github.com/symfony/MonologBundle/blob/1a34465d5f33a2b559dcae7eddd1ef838114994e/Tests/DependencyInjection/MonologExtensionTest.php#L213) |
|
Hm, now I understand why I did that before. (remove the if not service-exist).
So I think, I should update the code to focus on the second point. WDYT? |
25c8b67 to
55aaefd
Compare
|
OK, I just implemented the solution N°2 |
|
Removing the service definition check is indeed the right thing to do. DI extensions cannot check services defined by others. Currently, |
|
So it's a +1 ? |
|
Thanks @lyrixx. |
…ixx)
This PR was merged into the 2.6.x-dev branch.
Discussion
----------
Do not require raven.dsn when a client_id is specified
Right now, I have the following configuration. And as you can see, the raven.dsn
is useless here, are the client_id service is not buildt by the extension
but by myself.
```yml
monolog:
handlers:
raven:
type: raven
# useless, because we set-up a custom client, but we have to...
dsn: "%raven.dsn%"
client_id: sensiolabs.toolkit.monolog.raven_client
```
So with with patch, we can use:
```yml
monolog:
handlers:
raven:
type: raven
client_id: sensiolabs.toolkit.monolog.raven_client
```
BTW, I don't know the target branch of this PR.
Commits
-------
55aaefd Do not require raven.dsn when a client_id is specified
Right now, I have the following configuration. And as you can see, the raven.dsn
is useless here, are the client_id service is not buildt by the extension
but by myself.
So with with patch, we can use:
BTW, I don't know the target branch of this PR.