Skip to content

Commit

Permalink
Fixed symfony update
Browse files Browse the repository at this point in the history
  • Loading branch information
francisbesset committed Mar 28, 2011
1 parent 7d9d36e commit 782176c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Controller/PackingMinifyController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;

class PackingMinifyController extends Controller
{
Expand All @@ -19,6 +20,6 @@ public function getAction($file)
}
}

return new Response('', 404);
throw new NotFoundHttpException('Is not a XML Http Request');
}
}
4 changes: 2 additions & 2 deletions Resources/config/routing/packing_minify.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">

<route id="_pm_get" pattern="/{file}.{_format}">
<default key="_controller">BeSimplePackingMinifyBundle:PackingMinify:get</default>
<requirement key="_format">(css|js)</requirement>
<default key="_controller">BeSimplePackingMinify:PackingMinify:get</default>
<requirement key="_format">css|js</requirement>
</route>
</routes>

0 comments on commit 782176c

Please sign in to comment.