public function setRouting(array $routings = [])
    {
        $this->dispatcher = null;
        $this->routings = $routings + $this->routings;

        foreach ($this->routings as $name => &$routing) {
            if (1 == count($routing)) {
                array_unshift($routing, '/' . ltrim($name, '/'));
            }
            if (2 == count($routing)) {
                array_unshift($routing, ['GET', 'POST']);
            }
        }
    }
public function setRouting(array $routings = [])
    {
        $this->dispatcher = null;
        $this->routings = $routings + $this->routings;

        foreach ($this->routings as $name => &$routing) {
            if (1 == count($routing)) {
                array_unshift($routing, '/' . ltrim($name, '/'));
            }
            if (2 == count($routing)) {
                array_unshift($routing, ['GET', 'POST']);
            }
        }
    }
public function setRouting ( array $ routings = [ ] ) { $ this -> dispatcher = null ; $ this -> routings = $ routings + $ this -> routings ; foreach ( $ this -> routings as $ name => & $ routing ) { if ( 1 == count ( $ routing ) ) { array_unshift ( $ routing , '/' . ltrim ( $ name , '/' ) ) ; } if ( 2 == count ( $ routing ) ) { array_unshift ( $ routing , [ 'GET' , 'POST' ] ) ; } } }
Set app routing.

TODO group routing support
Set app routing .