@@ -39,13 +39,13 @@ discard block |
||
| 39 | 39 | * @param array $cookies List of uploaded files like in $_COOKIES |
| 40 | 40 | * @param array $server List of uploaded files like in $_SERVER |
| 41 | 41 | */ |
| 42 | - public function __construct( \Aimeos\MW\View\Iface $view, \TYPO3\Flow\Http\Request $request, array $files = array(), |
|
| 43 | - array $query = array(), array $post = array(), array $cookies = array(), array $server = array() ) |
|
| 42 | + public function __construct(\Aimeos\MW\View\Iface $view, \TYPO3\Flow\Http\Request $request, array $files = array(), |
|
| 43 | + array $query = array(), array $post = array(), array $cookies = array(), array $server = array()) |
|
| 44 | 44 | { |
| 45 | 45 | $this->request = $request; |
| 46 | - $psr7request = $this->createRequest( $request, $files, $query, $post, $cookies, $server ); |
|
| 46 | + $psr7request = $this->createRequest($request, $files, $query, $post, $cookies, $server); |
|
| 47 | 47 | |
| 48 | - parent::__construct( $view, $psr7request ); |
|
| 48 | + parent::__construct($view, $psr7request); |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | |
@@ -82,18 +82,18 @@ discard block |
||
| 82 | 82 | * @param array $server List of uploaded files like in $_SERVER |
| 83 | 83 | * @return \Psr\Http\Message\ServerRequestInterface PSR-7 request object |
| 84 | 84 | */ |
| 85 | - protected function createRequest( \TYPO3\Flow\Http\Request $nativeRequest, array $files, |
|
| 86 | - array $query, array $post, array $cookies, array $server ) |
|
| 85 | + protected function createRequest(\TYPO3\Flow\Http\Request $nativeRequest, array $files, |
|
| 86 | + array $query, array $post, array $cookies, array $server) |
|
| 87 | 87 | { |
| 88 | - $server = ServerRequestFactory::normalizeServer( $server ); |
|
| 89 | - $files = ServerRequestFactory::normalizeFiles( $files ); |
|
| 88 | + $server = ServerRequestFactory::normalizeServer($server); |
|
| 89 | + $files = ServerRequestFactory::normalizeFiles($files); |
|
| 90 | 90 | $headers = $nativeRequest->getHeaders()->getAll(); |
| 91 | 91 | $uri = (string) $nativeRequest->getUri(); |
| 92 | 92 | $method = $nativeRequest->getMethod(); |
| 93 | 93 | |
| 94 | 94 | $body = new Stream('php://temp', 'wb+'); |
| 95 | - $body->write( $nativeRequest->getContent() ); |
|
| 95 | + $body->write($nativeRequest->getContent()); |
|
| 96 | 96 | |
| 97 | - return new ServerRequest( $server, $files, $uri, $method, $body, $headers, $cookies, $query, $post ); |
|
| 97 | + return new ServerRequest($server, $files, $uri, $method, $body, $headers, $cookies, $query, $post); |
|
| 98 | 98 | } |
| 99 | 99 | } |
@@ -26,8 +26,8 @@ |
||
| 26 | 26 | * |
| 27 | 27 | * @param \Aimeos\MW\View\Iface $view View instance with registered view helpers |
| 28 | 28 | */ |
| 29 | - public function __construct( \Aimeos\MW\View\Iface $view ) |
|
| 29 | + public function __construct(\Aimeos\MW\View\Iface $view) |
|
| 30 | 30 | { |
| 31 | - parent::__construct( $view, new \Zend\Diactoros\Response() ); |
|
| 31 | + parent::__construct($view, new \Zend\Diactoros\Response()); |
|
| 32 | 32 | } |
| 33 | 33 | } |