public function map($name, $callback) {
        if (method_exists($this, $name)) {
            throw new \Exception('Cannot override an existing framework method.');
        }

        $this->dispatcher->set($name, $callback);
    }
public function map($name, $callback) {
        if (method_exists($this, $name)) {
            throw new \Exception('Cannot override an existing framework method.');
        }

        $this->dispatcher->set($name, $callback);
    }
public function map ( $ name , $ callback ) { if ( method_exists ( $ this , $ name ) ) { throw new \ Exception ( 'Cannot override an existing framework method.' ) ; } $ this -> dispatcher -> set ( $ name , $ callback ) ; }
Maps a callback to a framework method.

@param string $name Method name
@param callback $callback Callback function
@throws \Exception If trying to map over a framework method
Maps a callback to a framework method .