I've created a new Silex
controller, all the setup for it seemed fine, but for some reason it wasn't working. Every time I accessed a route for that controller, I got an error stating that the $request
argument wasn't provided, like so...
Here's a more detailed exception stack trace...
After some debugging it turned out that I was missing the following line from my controller class:
It was as simple as that!
Other posts you may like...