Closed AdamGold closed 8 years ago
Like this:
$route = $request->getAttribute('route');
$route->getArguments();
// or
$route->getArgument('argumentName');
Great, thank you very much.
@silentworks I think we should mention this in docs, because it's common question.
@dopesong good point, you wanna PR it or I will add it later on in the week.
Done
Hi, how can I access route's args in my middleware? Here's how I am adding the middleware:
Currently, in order to get the arguments, I do this manually (it works, but I wish this was built in in Slim):