fix: remove content* methods from UrlPdfBuilder and UrlScreenshotBuilder#266
fix: remove content* methods from UrlPdfBuilder and UrlScreenshotBuilder#266marilenaRM wants to merge 4 commits into
Conversation
For URL-based builders, the page body is provided by the URL itself. Exposing content(), contentRaw() and contentFile() was misleading since those methods have no effect on URL conversions.
Jean-Beru
left a comment
There was a problem hiding this comment.
Thanks you @marilenaRM !
It could be considered as a BC break but it's a bug fix... Maybe deprecating these methods will be more appropriated. WDYT @Neirda24 @StevenRenaux
PS: don't forget to update UPGRADE file to mention this change.
It would work I would say yes to the BC break but as it is not the case, not sure of the usefulness |
|
Shouldn't we split this in a dedicated trait ? As experienced before in this project we noticed that handling trait conflict while using reflection might just get things messy. Not in this specific case though. Don't mind the BC it is a bugfix to me as it doesn't produce anything I guess. |
d0458fd to
31a781b
Compare
|
Hello ! :) @Jean-Beru : I just added a commit for the update of the file UPGRADE :) @Neirda24 I pushed a separate commit for a way to introduce a separated Trait, WDYT? |
That's the reason why it can break current code. The following code works even if the $builder
->content(/*...*/)
->url(/* ... */)
👍
Then we could:
Later we could:
|
This solution LGTM 🤩 |
|
so, what's the plan? deprecate in 1.2 and BC Break in 2.0? |
LGTM |
Description
For URL-based builders, the page body is provided by the URL itself. Exposing content(), contentRaw() and contentFile() was misleading since those methods have no effect on URL conversions.