Symfony loading the files loads the default driver, DefaultController.php . How can I change that file by any other name?
Logically the error that I get when I delete it is:
class AppBundle \ Controller \ DefaultController does not exist
Symfony loading the files loads the default driver, DefaultController.php . How can I change that file by any other name?
Logically the error that I get when I delete it is:
class AppBundle \ Controller \ DefaultController does not exist
Both the file name and the class name must be identical:
AppBundle\Controller\[Nombre]Controller || AppBundle\Controller\[Nombre]Controller.php
// ^^^^^^^^ ^^^^^^^^
If you use routing.yml:
app:
path: /usuarios
defaults: { _controller: "AppBundle:[Nombre]:usuarios" }