Working With Controllers in Symfony 2

Create Controller in DemoBundle

php bin/console generate:controller

Controller name: AcmeDemoBundle:Main

Routing format: yml

New action: indexAction