|
@@ -4,6 +4,8 @@ namespace Muzich\CoreBundle\Controller;
|
4
|
4
|
|
5
|
5
|
use Muzich\CoreBundle\lib\Controller;
|
6
|
6
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
|
|
7
|
+use Symfony\Component\HttpFoundation\Response;
|
|
8
|
+use Symfony\Component\HttpKernel\Exception\HttpException;
|
7
|
9
|
|
8
|
10
|
class InfoController extends Controller
|
9
|
11
|
{
|
|
@@ -36,4 +38,9 @@ class InfoController extends Controller
|
36
|
38
|
return array();
|
37
|
39
|
}
|
38
|
40
|
|
|
41
|
+ public function teapotAction()
|
|
42
|
+ {
|
|
43
|
+ throw new HttpException(418, "I'm a teapot !");
|
|
44
|
+ }
|
|
45
|
+
|
39
|
46
|
}
|