public function group($pattern, $callable)
    {
        /** @var RouteGroup $group */
        $group = $this->container->get('router')->pushGroup($pattern, $callable);
        $group->setContainer($this->container);
        $group($this);
        $this->container->get('router')->popGroup();

        return $group;
    }
public function group($pattern, $callable)
    {
        /** @var RouteGroup $group */
        $group = $this->container->get('router')->pushGroup($pattern, $callable);
        $group->setContainer($this->container);
        $group($this);
        $this->container->get('router')->popGroup();

        return $group;
    }
public function group ( $ pattern , $ callable ) { /** @var RouteGroup $group */ $ group = $ this -> container -> get ( 'router' ) -> pushGroup ( $ pattern , $ callable ) ; $ group -> setContainer ( $ this -> container ) ; $ group ( $ this ) ; $ this -> container -> get ( 'router' ) -> popGroup ( ) ; return $ group ; }
Route Groups.

This method accepts a route pattern and a callback. All route
declarations in the callback will be prepended by the group(s)
that it is in.

@param string   $pattern
@param callable $callable

@return RouteGroupInterface
Route Groups .