src/BotMan.php
public function group(array $attributes, Closure $callback)
    {
        $previousGroupAttributes = $this->groupAttributes;
        $this->groupAttributes = array_merge_recursive($previousGroupAttributes, $attributes);

        \call_user_func($callback, $this);

        $this->groupAttributes = $previousGroupAttributes;
    }
public function group(array $attributes, Closure $callback)
    {
        $previousGroupAttributes = $this->groupAttributes;
        $this->groupAttributes = array_merge_recursive($previousGroupAttributes, $attributes);

        \call_user_func($callback, $this);

        $this->groupAttributes = $previousGroupAttributes;
    }
public function group ( array $ attributes , Closure $ callback ) { $ previousGroupAttributes = $ this -> groupAttributes ; $ this -> groupAttributes = array_merge_recursive ( $ previousGroupAttributes , $ attributes ) ; \ call_user_func ( $ callback , $ this ) ; $ this -> groupAttributes = $ previousGroupAttributes ; }
Create a command group with shared attributes.

@param  array $attributes
@param  \Closure $callback
Create a command group with shared attributes .