public function create($name)
    {
        $class = $this->class;
        /** @var Group $group */
        $group = new $class($name, $this->dispatcher);
        $this->groups[$group->getName()] = $group;

        return $group;
    }
public function create($name)
    {
        $class = $this->class;
        /** @var Group $group */
        $group = new $class($name, $this->dispatcher);
        $this->groups[$group->getName()] = $group;

        return $group;
    }
public function create ( $ name ) { $ class = $ this -> class ; /** @var Group $group */ $ group = new $ class ( $ name , $ this -> dispatcher ) ; $ this -> groups [ $ group -> getName ( ) ] = $ group ; return $ group ; }
Create a persistent group.

@param $name
@return Group
Create a persistent group .