Gets the RouteCollection instance associated with this Router.
RouteCollection A RouteCollection instance
Overrides RouterInterface::getRouteCollection
public function getRouteCollection() {
if (null === $this->collection) {
$this->collection = $this->loader
->load($this->resource, $this->options['resource_type']);
}
return $this->collection;
}