It is known that ZF2 has no Router. Every route is a router:
In the new routing system we don’t have a router as such, as every route can match and assemble URIs by themselves, which makes them routers, too.
And ZF2 now force you to put your routes in every module's config:
The mapping of a URL to a particular action is done using routes that are defined in the module’s module.config.php file. Open your config/module.config.php file, and modify it to add to the “routes” and “controller” parameters.
For me it's not convenient to have one solid thing be scattered over application directories. Is it possible somehow to have all my routes in one place (routes.php file, for example)? Like this, for example:
routes.php
return array (
'module_1' => array( ... its route/routes ...),
'module_2' => array( ... its route/routes ...), etc.
);
How to achieve it in ZF2?
Just to link with my question: ZF2 Routing as in ZF1