public function register(Gitiki $gitiki, array $config) { $gitiki['dispatcher'] = $gitiki->share($gitiki->extend('dispatcher', function ($dispatcher, $gitiki) { $dispatcher->addSubscriber(new Event\Listener\RedirectListener($gitiki['path_resolver'])); return $dispatcher; })); }