Controller.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. namespace Goodquestiondev\Controllers;
  3. use Symfony\Component\HttpFoundation\Request;
  4. class Controller
  5. {
  6. /**
  7. * Display the articles index.
  8. */
  9. public function index()
  10. {
  11. throw new \Exception('Undefined method '. __FUNCTION__);
  12. }
  13. /**
  14. * Show the form for creating a new resource.
  15. */
  16. public function create()
  17. {
  18. throw new \Exception('Undefined method '. __FUNCTION__);
  19. }
  20. /**
  21. * Store a resource
  22. *
  23. * @param Request $request
  24. */
  25. public function store(Request $request)
  26. {
  27. throw new \Exception('Undefined method '. __FUNCTION__);
  28. }
  29. /**
  30. * Display the specified resource
  31. *
  32. * @param array $params
  33. */
  34. public function show($params)
  35. {
  36. throw new \Exception('Undefined method '. __FUNCTION__);
  37. }
  38. /**
  39. * Show the form for editing the specified article.
  40. *
  41. * @param array $params
  42. */
  43. public function edit($params)
  44. {
  45. throw new \Exception('Undefined method '. __FUNCTION__);
  46. }
  47. /**
  48. * Update a newly created resource
  49. *
  50. * @param Request $request
  51. * @param string $params
  52. */
  53. public function update(Request $request, array $params)
  54. {
  55. throw new \Exception('Undefined method '. __FUNCTION__);
  56. }
  57. /**
  58. * Delete the specified resource
  59. *
  60. * @param array $params
  61. */
  62. public function destroy($params)
  63. {
  64. throw new \Exception('Bad request');
  65. }
  66. /**
  67. * Handle bad method
  68. *
  69. * @param Request $request
  70. */
  71. public function error($request)
  72. {
  73. throw new \Exception('Bad request');
  74. }
  75. }