| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function downloadAction() |
||
| 14 | { |
||
| 15 | // Initialize |
||
| 16 | $pageHoover = $this->container->get('afsy.pagehoover'); |
||
| 17 | |||
| 18 | // Download page |
||
| 19 | $page = 'http://afsy.fr/'; |
||
| 20 | $pageHoover->downloadPage($page); |
||
| 21 | |||
| 22 | // Return status |
||
| 23 | $response = new Response(); |
||
| 24 | |||
| 25 | return $response->setContent('Page "'.$page.'" is downloaded !')->send(); |
||
| 26 | } |
||
| 28 |