all() public method

Returns all route items
public all ( ) : InstanceRoute[]
return InstanceRoute[]
 /**
  * Returns all route items
  *
  * @return InstanceRoute[]
  */
 public function all()
 {
     $routes = $this->repo->all();
     foreach ($routes as $route) {
         $this->setToMap($route);
     }
     return $routes;
 }
 /**
  * Returns all route items
  *
  * @return InstanceRoute[]
  */
 public function all()
 {
     $key = $this->getCacheKey('all');
     $routes = $this->cache->has($key) ? $this->cache->get($key) : call_user_func(function () use($key) {
         $routes = $this->repo->all();
         if (count($routes) > 1) {
             $this->cache->put($key, $routes);
         }
         return $routes;
     });
     return $routes;
 }