src/ItemCollectors/ViewCollector.php
public function handle(string $pattern, callable $resolver): Route
    {
        $route = $this->data
            ->createRoute($pattern, $resolver)
            ->set('priority', $this->crtPriority);

        $this->data->sort();

        return $route;
    }
public function handle(string $pattern, callable $resolver): Route
    {
        $route = $this->data
            ->createRoute($pattern, $resolver)
            ->set('priority', $this->crtPriority);

        $this->data->sort();

        return $route;
    }
public function handle ( string $ pattern , callable $ resolver ) : Route { $ route = $ this -> data -> createRoute ( $ pattern , $ resolver ) -> set ( 'priority' , $ this -> crtPriority ) ; $ this -> data -> sort ( ) ; return $ route ; }
Defines a new view route

@param   string $pattern View's pattern
@param   callable $resolver A callback that will resolve a view route into a path

@return  Route
Defines a new view route