public function get($route, $callable, $name = null, array $events = null) {
        $this['router']->map('GET', $route, $callable, $name);

        if ($name && is_array($events)) {
            $this->routeEvents[$name] = $events;
        }

        return $this;
    }
public function get($route, $callable, $name = null, array $events = null) {
        $this['router']->map('GET', $route, $callable, $name);

        if ($name && is_array($events)) {
            $this->routeEvents[$name] = $events;
        }

        return $this;
    }
public function get ( $ route , $ callable , $ name = null , array $ events = null ) { $ this [ 'router' ] -> map ( 'GET' , $ route , $ callable , $ name ) ; if ( $ name && is_array ( $ events ) ) { $ this -> routeEvents [ $ name ] = $ events ; } return $ this ; }
Create a GET route
@param string $route Route path
@param callable|\Closure $callable Route callable
@param string $name Route name
@param array $events Events to be executed before and/or after this route
@return \Oito\Micro\Application
Create a GET route