pathFor() outside route closure

How can I call

$url = $this->router->pathFor('home');

outside route closure ?

if you have access to Container…

$container->get('router');
$url = $router->pathFor('home');