Esempio n. 1
0
 function let(Request $request)
 {
     $request->getQueryParams()->willReturn(['query' => 'value']);
     $request->getParsedBody()->willReturn(['body' => 'value']);
     $request->getUploadedFiles()->willReturn(['files' => 'value']);
     $request->getCookieParams()->willReturn(['cookie' => 'value']);
     $request->getAttributes()->willReturn(['attribute' => 'value']);
 }
Esempio n. 2
0
 /**
  * @inheritDoc
  */
 public function process(Request $request) : array
 {
     return [array_replace((array) $request->getQueryParams(), (array) $request->getParsedBody(), (array) $request->getUploadedFiles(), (array) $request->getCookieParams(), (array) $request->getAttributes())];
 }