for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AnimeDb package.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011, Peter Gribanov
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
*/
namespace AnimeDb\Bundle\AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use AnimeDb\Bundle\AppBundle\Service\Downloader;
class MediaController extends Controller
{
* @param string $host
* @return Response
public function faviconAction($host)
$response = new Response();
$response->headers->set('Content-Type', Downloader::FAVICON_MIME);
$filename = $this->get('anime_db.downloader')->favicon($host);
return $response->setContent(file_get_contents($filename));
}