Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
32 | protected function initRequest() |
||
33 | { |
||
34 | $server = [ |
||
35 | 'HTTP_HOST' => 'mydomain.com', |
||
36 | 'SCRIPT_FILENAME' => '/home/app/subfolder/index.php', |
||
37 | 'SCRIPT_NAME' => '/subfolder/index.php', |
||
38 | 'REQUEST_URI' => '/subfolder/', |
||
39 | ]; |
||
40 | $request = new \Nip\Http\Request([], [], [], [], [], $server); |
||
41 | |||
42 | Container::getInstance()->set('request', $request); |
||
43 | } |
||
44 | } |