InfoController.php 701B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace Muzich\CoreBundle\Controller;
  3. use Muzich\CoreBundle\lib\Controller;
  4. use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\HttpKernel\Exception\HttpException;
  7. class InfoController extends Controller
  8. {
  9. /**
  10. *
  11. * @Template()
  12. */
  13. public function aboutAction()
  14. {
  15. return array();
  16. }
  17. /**
  18. *
  19. * @Template()
  20. */
  21. public function developmentAction()
  22. {
  23. return array();
  24. }
  25. /**
  26. *
  27. * @Template()
  28. */
  29. public function sitesAction()
  30. {
  31. return array();
  32. }
  33. public function teapotAction()
  34. {
  35. throw new HttpException(418, "I'm a teapot !");
  36. }
  37. }