public function group(string $groupName, \Closure $callback) {
        $this->currentGroupName = $groupName;

        $this->isGroupe = TRUE;
        $this->isGroupeMiddlewares = FALSE;
        $callback($this);
        $this->isGroupeMiddlewares = TRUE;
        $this->currentGroupName = NULL;

        return $this;
    }
public function group(string $groupName, \Closure $callback) {
        $this->currentGroupName = $groupName;

        $this->isGroupe = TRUE;
        $this->isGroupeMiddlewares = FALSE;
        $callback($this);
        $this->isGroupeMiddlewares = TRUE;
        $this->currentGroupName = NULL;

        return $this;
    }
public function group ( string $ groupName , \ Closure $ callback ) { $ this -> currentGroupName = $ groupName ; $ this -> isGroupe = TRUE ; $ this -> isGroupeMiddlewares = FALSE ; $ callback ( $ this ) ; $ this -> isGroupeMiddlewares = TRUE ; $ this -> currentGroupName = NULL ; return $ this ; }
Starts a named group of routes

@param string $groupName
@param \Closure $callback
@return $this
Starts a named group of routes