In symfony 2 controllers, every time I want to get a value from post I need to run:
$this->getRequest()->get('value1');
$this->getRequest()->get('value2');
Is there any way to consolidate these into one statement that would return an array? Something like Zend's getParams()?
See Question&Answers more detail:os