Probably this is a simple question but I am still an amateur.
How do I create a route without a "pattern" attribute?
I mean a route corresponding to an action that isn't accessible?
In yaml if I try something like:
security_loginfailure:
requirements:
_controller: SecurityBundle:Security:loginFailure
Symfony tells me that my route must have a pattern. So I have to add something like
pattern: /loginfailure
But obviously a browser can request /loginfailure.
Should I configure my controller as a service? Or what?