Replace Logger::deprecated with PRS-3 Logger::warning#512
Replace Logger::deprecated with PRS-3 Logger::warning#512rvanlaak wants to merge 63 commits intorackspace:workingfrom
Conversation
|
Thanks for the PR, @rvanlaak. Your change works but I'd like to refactor the functionality of generating the method deprecation message into a single method somewhere. Would you mind creating an use OpenCloud\Common\Log\Util;
$service->getLogger()->warning(Util::generateMethodDeprecationMessage(__METHOD__, 'new method or class'));Also, as noted in the CONTRIBUTING.md file, please run Thanks, again, for the submission! |
|
What about changing Another question about the Logger: does the |
Yes, that could work too! One more thing -- please add a unit test for this method in the
No, I believe it has to be set explicitly via |
|
Are there any scenarios that it shouldn't be favorable to also pass the parent's logger when creating a Service or Container? Otherwise I propose to let the |
|
I can't imagine why you would not want the parent logger to be injected by default. If a user does not want this, they can reset with |
|
@rvanlaak Could you rebase against |
|
Actually never did a rebase before. Tried it a couple of times, but I seem to be missing the point. Do I need to checkout the current |
|
I'd do something like this: |
6c1e890 to
a98c879
Compare
…uilding a service object.
…provides a lower one.
… in PersistentResource.
|
Rebasing against |
|
@rvanlaak Hmm. Weird. I'll cherry-pick the commits over to working. Thanks! |
|
👍 |
|
@jamiehannaford I've submitted PR #518 to reuse the Logger instance |
... in order to be able to inject
Monologlogger or other PRS-3 Loggerssee #511