public function __construct(DiscussionSearcher $searcher, UrlGenerator $url) { $this->searcher = $searcher; $this->url = $url; }