Skip to content

Instantly share code, notes, and snippets.

@spolischook
Last active November 23, 2016 19:42
Show Gist options
  • Save spolischook/54e28d2e394c592583d6d06b892c1c61 to your computer and use it in GitHub Desktop.
Save spolischook/54e28d2e394c592583d6d06b892c1c61 to your computer and use it in GitHub Desktop.

Read the docs:

Research Symfony code:

  • Symfony\Bundle\FrameworkBundle\Controller\Controller
  • Symfony\Component\HttpKernel\EventListener\RouterListener
  • Symfony\Component\Routing\Matcher\UrlMatcherInterface
  • Symfony\Component\HttpKernel\Exception* - use proper exception in your controllers

HW (Blog):

  • Create Controller with several actions
  • Build script. See example https://github.com/geekhub-php/CheTheatre/tree/master/bin
  • Readme - How setup project
  • Readme - list of links
  • Use GET, POST, PUT, PATCH, DELETE methods for your actions
  • Return JsonResponse from your controllers
  • PostMan\Advanced Rest Client

Advanced:

  • Curl
  • Tests with curl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment