Set the request method.
Merge pull request #778 from qiangxue/master

Set the request method for Yii 2 connector