diff --git a/Controller/PackingMinifyController.php b/Controller/PackingMinifyController.php index 5e40ea0..dc7e392 100644 --- a/Controller/PackingMinifyController.php +++ b/Controller/PackingMinifyController.php @@ -3,6 +3,7 @@ namespace BeSimple\PackingMinifyBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; +use Symfony\Component\HttpFoundation\Response; class PackingMinifyController extends Controller { @@ -12,12 +13,12 @@ public function getAction($file) if (false !== $content = $this->get('packing_minify')->get($file, $format)) { if ($format == 'css') { - return $this->createResponse($content, 200, array('Content-Type' => 'text/css')); + return new Response($content, 200, array('Content-Type' => 'text/css')); } else { - return $this->createResponse($content, 200, array('Content-Type' => 'application/x-javascript')); + return new Response($content, 200, array('Content-Type' => 'application/x-javascript')); } } - return $this->createResponse('', 404); + return new Response('', 404); } } \ No newline at end of file