title: Slim PHP Route in Middleware
body: <p>In Slim is it possible to get the current route within middleware?</p>
  
  <pre><code>class Auth extends \Slim\Middleware{
    public function call(){ 
      $currentRoute = $this-&gt;app-&gt;getRoute(); // Something like this?
    }
  }
  </code></pre>
  
  <p>I know you can call <code>$app-&gt;router()-&gt;getCurrentRoute()</code> after the <code>slim.before.dispatch</code> hook is called, but when you call this from middleware it returns a non-object. Any help would be greatly appreciated.</p>