This course is archived!
This tutorial is built using Drupal 8.0. The fundamental concepts of Drupal 8 - like services & routing - are still valid, but newer versions of Drupal *do* have major differences.
16.
Event Subscribers and Dependency Injection Tags
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
5 Comments
its worth noting that its an amazingly good idea to install the drupal symfony bridge plugin into phpstorm, and then enable the symfony toolbar.
look here for all the goodies.
https://confluence.jetbrain...
Not sure if it's something odd on my end but, fwiw, reloading the url of the webprofiler resulted in an error:
Perhaps that's due to some change since the video was created? If so, it would be nice if someone pointed that out.
I was able to see the results of the var_dump on the index page though.
Hey Aaron L.!
Hmm... this looks like a minor bug to me in devel/webprofiler!. Since Symfony 4.4, that "read()" method from the DatabaseProfilerStorage has a return type that says it should return "null" or a Profiler object.... but in the webprofiler module, it is returning "nothing" (no return statement). But, checking out the latest devel code, it is indeed possible for that method to return "nothing" - if the profiler token wasn't found in the database - https://gitlab.com/drupalfo... - which I believe would happen after you cleared cache. It's harmless, but annoying - they should return "null" in this situation.
I hope that explains at least!
Cheers!
Thanks for the reply! Not sure if it's you in the video or not but in regards to learning the new ways of doing things in Drupal, these videos (and the symfony ones as well) have been the most informative of all of the things I've been looking at. The fact that this video is so old and you've taken the time to reply is awesome as well so thanks for that!!
It's all starting to make sense now!
Hi Aaron L.!
Ah... thank you for the really nice words! Yea... this tutorial is (unfortunately) quite old now... but I'm absolutely thrilled that it can still be useful - I really love this topic :). Keep up the good work!
Cheers!
"Houston: no signs of life"
Start the conversation!