public function resolveGroup($pattern, $route = null)
    {
        foreach($this->groupHandlers as $handler)
        {
            if(!$handler->validate($pattern, $route))
                continue;

            return $handler->resolve($this, $pattern, $route);
        }

        foreach($this->defaultGroupHandlers as $handler)
        {
            if(!$handler->validate($pattern, $route))
                continue;

            return $handler->resolve($this, $pattern, $route);
        }

        throw new InvalidArgumentException('Unable to resolve the routing group pattern');
    }
public function resolveGroup($pattern, $route = null)
    {
        foreach($this->groupHandlers as $handler)
        {
            if(!$handler->validate($pattern, $route))
                continue;

            return $handler->resolve($this, $pattern, $route);
        }

        foreach($this->defaultGroupHandlers as $handler)
        {
            if(!$handler->validate($pattern, $route))
                continue;

            return $handler->resolve($this, $pattern, $route);
        }

        throw new InvalidArgumentException('Unable to resolve the routing group pattern');
    }
public function resolveGroup ( $ pattern , $ route = null ) { foreach ( $ this -> groupHandlers as $ handler ) { if ( ! $ handler -> validate ( $ pattern , $ route ) ) continue ; return $ handler -> resolve ( $ this , $ pattern , $ route ) ; } foreach ( $ this -> defaultGroupHandlers as $ handler ) { if ( ! $ handler -> validate ( $ pattern , $ route ) ) continue ; return $ handler -> resolve ( $ this , $ pattern , $ route ) ; } throw new InvalidArgumentException ( 'Unable to resolve the routing group pattern' ) ; }
Create routing group by given path
For now, assume the passed pattern as path
@param string $pattern
@param Route|null $route
@return \Exedra\Routing\Group
@throws \Exedra\Exception\InvalidArgumentException
Create routing group by given path For now assume the passed pattern as path