I am trying to change my routing from annotations in thr routing.yml. Now this is the only configuration in my routing_dev.yml:
user.index: pattern: / defaults: { _controller: AcmeMyBundle:User/UserIndex:index }
And this is a mistake:
Fatal error: Cannot redeclare class Acme\MyBundle\Controller\User\UserIndexController in C:\Users\gp\Desktop\xampp\htdocs\project\src\Acme\MyBundle\Controller\User\UserIndexController.php on line 56
Why is this happening? This is truly the only class with this name. I have no annotations in UserIndexController.
Does anyone have an idea? Thank you very much.
source share