title: List all routes from an application using Zend Framework 2
body: <p><strong>How to easily list all routes that we have defined in our application with Zend Framework</strong> 2?</p>
  
  <p>By "routes" I mean those which are defined in:</p>
  
  <p><code>module/[moduleName]/config/module.config.php</code></p>
  
  <p>under</p>
  
  <pre><code>'router' =&gt; array(
      'routes' =&gt; array(
          ...
      )
  )
  </code></pre>
  
  <p>I need to list them all but I can't figure out how to do this easily and nor the documentation nor the forums helped me by now.</p>