Commit 4b19690
Create RequestMethodInterface.php
Example:
<?php
class Request extends ServerRequest implements
RequestInterface, RequestMethodInterface
{
public function __construct(
$uri = '/',
RequestMethodInterface $method = Request::METHOD_GET,
array $server = array(),
array $query = array(),
array $parsedBody = array(),
array $cookies = array(),
array $files = array()
) {
//...
}
}
$request = new Http\Request(
'/',
Request::METHOD_GET,
$GLOBALS['_SERVER'],
$GLOBALS['_GET'],
$GLOBALS['_POST'],
$GLOBALS['_COOKIE'],
$GLOBALS['_FILES']
);1 parent e40e168 commit 4b19690
1 file changed
+18
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments