-
-
Notifications
You must be signed in to change notification settings - Fork 236
Deprecate the NotFoundActivationStrategy class #169
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
Use the version that is in monolog-bridge instead. That version uses request_stack rather than request from the service container, which means excluded_404s shall be properly ignored in Symfony 3.
Tests are failing as this is incompatible with Symfony 2.3, which Travis is currently testing. Given that Symfony 2.3 enters its security-fixes-only LTS phase this month, I don't think the extra effort to maintain that compatibility is worthwhile as it is non-trivial (as documented in #94). |
@Seldaek, any chance you could give this a review / provide any feedback? |
I think we should just require symfony 2.7 and then I can merge this in the v3 of the bundle. 2.6 isn't LTS so it's kinda pointless. |
I'm not familiar with Symfony's process for specifying dependancies between bundles of varying versions and how that interacts with maintenance periods. What parts of the composer.json should I update? Currently the minimal version bumps for this code to work are:
Should I update the definitions for both |
Indeed we don't track symfony versions at all. And yes I'd say put everything symfony/* to require 2.7|3.0 :) |
We also depend upon I figure if I bump everything up to requiring 2.7 then I should also update the Travis config to not bother testing against 2.3. Oh also, I mimiced @fabpot's original PR in deprecating but not removing the Would you prefer these changes in additional commits or should I squash them down into one? |
Yes I'm thinking we might as well bump it all to 2.7 as the rest is EOL and we go for a major version. The class I would leave it in but maybe add a As for the commits, I don't really mind :) |
Minimum supported version is now Symfony 2.7 as everything before that is EOL or in the security-fixes-only LTS support stage
Added the version bumps to composer.json. I've just spotted something glaringly obvious that I missed... The constructor definitions are different for the So we've got two choices:
What do you reckon? |
Oh right then I'd vote for remove it entirely, and we'll document it in
the changelog.
|
The constructor args differ from the NotFoundActivationStrategy provided by monolog-bridge so we can't easily provide sensible BC while deprecating. If you inherit from NotFoundActivationStrategy you should inherit from Symfony\Bridge\Monolog\Handler\FingersCrossed\NotFoundActivationStrategy instead.
Cool, my vote would have been for dealing with that in the documentation too. Removed the class. No more questions from me, I think this is ready to roll. |
@Seldaek if you make a v3 of this bundle, it would be great to remove all |
Are there any blocking issues/things-to-do preventing v3 (RC or beta) from being released? |
I'm going to take care of version 3 of the bundle. |
Here is the plan:
In the next coming hours, I'm going to merge some PR on 2.x and 3. |
Thank you @BPScott. |
FYI, I've added a CHANGELOG in 885da32 |
@fabpot Thank you for your quick response/actions! |
… PSR-3 (ged15) This PR was submitted for the master branch but it was merged into the 2.x branch instead (closes #173). Discussion ---------- ability to configure whether messages should be formatted as PSR-3 This PR symfony/symfony#17166 (reasons described in symfony/symfony#15753) has changed the way messages are logged in Symfony. Now log messages contain placeholders (see https://github.com/symfony/symfony-standard/issues/981). While this could be a useful feature, IMO by default in SE messages should be preformatted. This PR introduces a new optional config option that makes the messages be preformatted by default but this behaviour can also be disabled. Commits ------- 6c8a44b ability to configure whether messages should be formatted as PSR-3 44f3daf minor #179 removed obsolete code (fabpot) 7d28c5a Merge branch '2.x' b6baaaf Merge branch '2.x' 57b33d6 removed obsolete code a45682c updated CHANGELOG bcbf4c5 fixed tests 079c3d1 feature #170 remove class parameters (avant1) 6398efc remove class parameters 885da32 added a CHANGELOG d8b3f8a feature #169 Deprecate the NotFoundActivationStrategy class (BPScott) b77bdf0 Deprecate the NotFoundActivationStrategy class ce169ee bumped version to 3.x
Use the version that is in monolog-bridge instead. That version uses
request_stack rather than request from the service container, which
means excluded_404s shall be properly ignored in Symfony 3.
Replaces #94, Fixes #166 and invalidates #123.
This change remains backwards compatible with Symfony 2.6 and above.