src/Router/RouteBuilder.php
protected function setMapDefaults(array $data)
    {
        $defaults = ['tokens', 'defaults', 'host', 'accepts'];
        foreach ($data as $name => $value) {
            if (in_array($name, $defaults)) {
                $this->map->$name($value);
            }
        }
    }
protected function setMapDefaults(array $data)
    {
        $defaults = ['tokens', 'defaults', 'host', 'accepts'];
        foreach ($data as $name => $value) {
            if (in_array($name, $defaults)) {
                $this->map->$name($value);
            }
        }
    }
protected function setMapDefaults ( array $ data ) { $ defaults = [ 'tokens' , 'defaults' , 'host' , 'accepts' ] ; foreach ( $ data as $ name => $ value ) { if ( in_array ( $ name , $ defaults ) ) { $ this -> map -> $ name ( $ value ) ; } } }
Gets the YML parser data and sets the map default defined

@param array $data
Gets the YML parser data and sets the map default defined