I'd like to have a way to switch my phalcon-based app to a maintenance mode. That means I want all the requests to land on the same "maintenance controller" if a "maintenance" constant is set to true in my boostrap.
The only way I've found so far is to overwrite my router, just before building the \Phalcon\Mvc\Application() , removing all the usual routes.
Isn't there a better way ? Some built-in router functions maybe ?