Cannot use the _controller key of the YAML resource file. This is the symfony2 code that runs:
//classes.php, analysis method
$try = $b->getNamespace() . '\\Controller\\' . $controller . 'Controller'; if (class_exists($try)) { return $try . '::' . $action . 'Action'; }
As you can see, the “Controller” is merged after the Bundle namespace. Startup will use the namespace as the path to the file, and the controller will never be found.
If you use _Controller, your controllers must be located in the Controller folder, which is located directly in the Bundle directory.
source share