| @@ 53-62 (lines=10) @@ | ||
| 50 | * @param array $cookie |
|
| 51 | * @param array $files |
|
| 52 | */ |
|
| 53 | public function __construct(array $server, array $get, array $post, array $cookie, array $files) |
|
| 54 | { |
|
| 55 | $this->server = $server; |
|
| 56 | $this->get = $get; |
|
| 57 | $this->post = $post; |
|
| 58 | $this->cookie = $cookie; |
|
| 59 | $this->files = $files; |
|
| 60 | ||
| 61 | $this->initialize(); |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| 65 | * Initialize adapter: create the ServerRequest and Response instances. |
|
| @@ 87-94 (lines=8) @@ | ||
| 84 | * |
|
| 85 | * @return ApplicationInterface |
|
| 86 | */ |
|
| 87 | public function setEnvironmentFromGlobals(array $get, array $post, array $server, array $cookie, array $files) |
|
| 88 | { |
|
| 89 | $this->get = $get; |
|
| 90 | $this->post = $post; |
|
| 91 | $this->server = $server; |
|
| 92 | $this->cookie = $cookie; |
|
| 93 | $this->files = $files; |
|
| 94 | } |
|
| 95 | ||
| 96 | /** |
|
| 97 | * Runs the application. This is where the magic happens. |
|