I am writing a interceptor to validate request and decode data received from POST. After decoding data I have to set data to $_POST
so that my all previous writer functionality will work as it is.
I have set values like below
$_POST['amount'] = $data['a'];
$_POST['currency'] = $data['c'];
I am able to get these variables using $_POST
but these values are not accessible in Yii::$app->request->post()
So my question is can I get these values by Yii::$app->request->post()