Controller.php 881 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Goodquestiondev\SimpleRouterResource;
  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 newly created 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 $resource
  33. */
  34. public function show(array $resource)
  35. {
  36. throw new \Exception('Undefined method '. __FUNCTION__);
  37. }
  38. }