Conditions | 4 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function handle() |
||
21 | { |
||
22 | // TODO: Probably walk through all known handlers and query them whether they're |
||
23 | // responsible/capable for answering the request or not. Take the best match. |
||
24 | |||
25 | if (isset($_REQUEST['unique']) && substr($_REQUEST['unique'], 0, 8) == 'synology') { |
||
26 | $handler = new SynologyHandler($this->config); |
||
27 | } elseif ($_SERVER['REQUEST_METHOD'] == 'GET') { |
||
28 | $handler = new BrowserHandler($this->config); |
||
29 | } else { |
||
30 | $handler = new NotFoundHandler($this->config); |
||
31 | } |
||
32 | $handler->handle(); |
||
33 | } |
||
34 | } |
||
35 |