12.
Constructors for your Controller
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.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
12 Comments
Worked on Symfony 4.1.1!
Hey Luis,
Thanks for confirming that it works!
Cheers!
I've seen you use `dump(...);die;` a lot. It seems on Symfony 4.1 you can now use `dd(...)` -> dump & die. BTW great screencast!
Hey Qcho,
Good catch! Actually, we know about dd() function, but we're on Symfony 4.0 in this screencast :)
Thanks for sharing it with others BTW!
Cheers!
yup, working here. 4.4.2
Hey Maxii123,
Thanks for confirming it works for you on 4.4.2 :)
Cheers!
I would like to see that historical proposal talk between those "two devs".
If anyone finds it, please share!
Probably one of those devs was Ryan!
And the other was Fabien! 😂
hahaha you bet!
SF 4.08 and still not working to bind non service arguments to controllers :D
Hey Petru L.!
That's correct :). It will work in Symfony 4.1, which comes out in May). We can only add new features in the "minor" releases (e.g. 4.1 or 4.2) - we can't add any features (only bug fixes) in the "patch" releases (e.g. 4.0.7 or 4.0.8). The fix HAS been merged though - so it's definitely coming in 4.1.0! Look for it!
Cheers!
"Houston: no signs of life"
Start the conversation!