Controller's file default location is src/AppBundle/Controller Now you can create here your controller with below code.

BY Best Interview Question ON 24 Jan 2019

Example

namespace AppBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class YourControllerName extends Controller
{
}