Closed (fixed)
Project:
Composer Manager
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Sep 2014 at 12:05 UTC
Updated:
4 Dec 2014 at 23:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jsacksick commentedComment #2
jsacksick commentedI'm not sure whether to use
Url::fromRoute('composer_manager.packages_page')->toString()or\Drupal::url('composer_manager.packages_page')The attached patch seems to work fine.
Comment #3
cpliakas commentedLooks good to me. Thanks for helping to keep us up to date with D8 head!
Comment #4
jsacksick commentedComment #5
JulienD commentedThe patch worked for me too
Comment #6
JulienD commentedl() and url() have been replaced by an improved URL generation API today - #2346779- and the module generates a WSOD.
Here is the updated patch that fixes the use to the l() function
Comment #7
JulienD commentedRerolled the patch to remove calls to \Drupal::url('') as Jonathan mentioned previously
Comment #8
bojanz commented@Julien
I just posted a duplicate in #2348237: Remove deprecated calls to l() :(
Please use the LinkGenerator trait like I did in https://www.drupal.org/files/issues/2348237-1-remove-deprecated-l-calls....
The $link in the AutoloaderSubscriber should either be removed, or the LinkGenerator injected via the constructor.
Comment #9
JulienD commentedHere is a new version of the patch that include Bojan's feedback.
Thx!
Comment #10
JulienD commentedComment #11
lachezar.valchev commentedJust tried it out against beta1. Works for me as well.
Thanks!
Comment #12
cpliakas commentedbojanz, thanks for guiding us to best practices.
All, thanks for re-rolling and testing.
Comment #13
jbrown commentedPlease commit this! ;-)
Comment #14
guguss commented#9 Fixed the issue for me too. Ready to be merged.
Comment #15
pcambraJust confirming the RTBC :)
Comment #16
ByronNorris commented#9 worked for me as well! Thanks. RTBC++
Comment #17
cpliakas commentedSounds good, just got back from a trip to Spain so I was offline.
@jbrown, do you want commit access to expedite D8 fixes getting pushed to the codebase?
Comment #18
martin107 commentedmore than just url has been fixed :)
Comment #19
jbrown commented@cpliakas yes please give me commit access so I can push these API changes.
Comment #20
bojanz commentedCommitted :)