Is it possible in Symfony 4 to set the routing name trough yaml.
So old annotation
/**
* @Route("/cms", name="security_login")
*/
public function loginAction(Request $request, AuthenticationUtils $authenticationUtils) {
// code here
}
Yaml annotation
login:
path: /cms
controller: App\Controller\SecurityController::loginAction
name: security_login
It looks like yaml doesn't support the name key. only the following keys are supported:
"resource", "type", "prefix", "path", "host", "schemes", "methods", "defaults", "requirements", "options", "condition", "controller".
or is the key 'login' the name?