src/Bootstrap.php
public function getPathFor(string $name, array $args): string
    {
        return $this->app->getContainer()->get('router')->pathFor($name, $args);
    }
public function getPathFor(string $name, array $args): string
    {
        return $this->app->getContainer()->get('router')->pathFor($name, $args);
    }
Shortcut for the URL generation of the named route
with the Slim application router’s pathFor() method
@param string $name
@param array $args
@return string