Request
参照symfony2的Request服务
public function testAction(Request $request)
{
//get
$request -> query -> get('xxx');
$request -> query -> all();
}
public function testAction(Request $request)
{
//post
$request -> request -> get('xxx');
$request -> request -> all()
}
public function testAction(Request $request)
{
//file
$request -> file -> get('xxxx');
}