public function __construct(UrlMatcher $matcher) { $this->matcher = $matcher; $this->collection = RouterCollection::getAllRoutes(); $this->loadCollection(); $this->loadStatus(); }