In the previous article, I have already covered what Route and a Controller is, and how to use them inside Symfony.
As I already explained, the Controller is a function we write to handle request that comes into a Symfony and return a response. As a response you can render a template or even turn objects into JSON for an API.
To create your first page with Symfony, you first need to understand what Route and a Controller is.
Symfony embraces the HTTP Request-Response lifecycle.
The Route is basically a map from a URL path to a controller and it can be configured in 4 different ways: using annotations or configuring route inside YAML , XML and PHP file.