Slim URLFor in version 3 <p>In <code>Slim v2</code>, i was able to retrieve the routing for an given get, post, ... requests. I since tinkered with <code>Slim v3</code>, can't figure out to recreate the same logic and the documentation is fairly sparse at the moment.</p> <pre><code>$app-&gt;get('/login/', function ($request, $response, $args) use($app) { })-&gt;setName('getLogin'); $app-&gt;urlFor('getLogin'); </code></pre> <p>Which will complain, due to the <code>urlFor</code> method is missing, so how do i recreate this code in <code>Slim v3</code>? With the error </p> <blockquote> <p>"Referenced method is not found in subject class".</p> </blockquote>