src/Router/Routes/Glob.php
protected function createRoutes($input)
    {
        if ($input instanceof \Traversable) {
            $input = iterator_to_array($input, true);
        } elseif ($input instanceof \stdClass) {
            $input = get_object_vars($input);
        }

        return array_map([$this, 'createRoute'], $input);
    }
protected function createRoutes($input)
    {
        if ($input instanceof \Traversable) {
            $input = iterator_to_array($input, true);
        } elseif ($input instanceof \stdClass) {
            $input = get_object_vars($input);
        }

        return array_map([$this, 'createRoute'], $input);
    }
protected function createRoutes ( $ input ) { if ( $ input instanceof \ Traversable ) { $ input = iterator_to_array ( $ input , true ) ; } elseif ( $ input instanceof \ stdClass ) { $ input = get_object_vars ( $ input ) ; } return array_map ( [ $ this , 'createRoute' ] , $ input ) ; }
Create routes from input

@param Route[]|array|stdClass|\Traversable $input
@return type
Create routes from input