private function buildNameCache()
    {
        if (!empty($this->nameCache)) {
            return;
        }
        foreach ($this as $route) {
            if (!$route->name()) {
                continue;
            }
            $this->nameCache[$route->name()] = $route;
        }
    }
private function buildNameCache()
    {
        if (!empty($this->nameCache)) {
            return;
        }
        foreach ($this as $route) {
            if (!$route->name()) {
                continue;
            }
            $this->nameCache[$route->name()] = $route;
        }
    }
private function buildNameCache ( ) { if ( ! empty ( $ this -> nameCache ) ) { return ; } foreach ( $ this as $ route ) { if ( ! $ route -> name ( ) ) { continue ; } $ this -> nameCache [ $ route -> name ( ) ] = $ route ; } }
Iterates through routes and builds a name cache.
Iterates through routes and builds a name cache .