|
@@ 13-20 (lines=8) @@
|
| 10 |
|
{ |
| 11 |
|
public function __construct( App $app, Twig_Environment $twig, $favicon_data) |
| 12 |
|
{ |
| 13 |
|
$app->get('/browserconfig.xml', function (Request $request, Response $response) use ($twig, $favicon_data) { |
| 14 |
|
$output = $twig->render('favicons.browserconfig.xml.tpl', $favicon_data); |
| 15 |
|
|
| 16 |
|
$newResponse = $response->withHeader('Content-type', 'application/xml'); |
| 17 |
|
$newResponse->getBody()->write($output); |
| 18 |
|
|
| 19 |
|
return $newResponse; |
| 20 |
|
}); |
| 21 |
|
|
| 22 |
|
|
| 23 |
|
$app->get('/manifest.json', function (Request $request, Response $response) use ($twig, $favicon_data) { |
|
@@ 23-30 (lines=8) @@
|
| 20 |
|
}); |
| 21 |
|
|
| 22 |
|
|
| 23 |
|
$app->get('/manifest.json', function (Request $request, Response $response) use ($twig, $favicon_data) { |
| 24 |
|
$output = $twig->render('favicons.manifest.json.tpl', $favicon_data); |
| 25 |
|
|
| 26 |
|
$newResponse = $response->withHeader('Content-type', 'application/manifest+json'); |
| 27 |
|
$newResponse->getBody()->write($output); |
| 28 |
|
|
| 29 |
|
return $newResponse; |
| 30 |
|
}); |
| 31 |
|
|
| 32 |
|
|
| 33 |
|
} |