Library/Think/Http/Router.class.php
/**
     * A helper function for processing the group's pattern and middleware
     * @return array Returns an array with the elements: pattern, middlewareArr
     */
A helper function for processing the group's pattern and middleware
@return array Returns an array with the elements: pattern, middlewareArr
A helper function for processing the group ' s pattern and middleware @return array Returns an array with the elements : pattern middlewareArr
protected function processGroups() {
        $pattern    = "";
        $middleware = [];
        foreach ($this->routeGroups as $group) {
            $pattern .= $group['pattern'];
            if (is_array($group['middleware'])) {
                $middleware = array_merge($middleware, $group['middleware']);
            }
        }
        return [$pattern, $middleware];
    }
protected function processGroups ( ) { $ pattern = " " ; $ middleware = [ ] ; foreach ( $ this -> routeGroups as $ group ) { $ pattern .= $ group [ 'pattern' ] ; if ( is_array ( $ group [ 'middleware' ] ) ) { $ middleware = array_merge ( $ middleware , $ group [ 'middleware' ] ) ; } } return [ $ pattern , $ middleware ] ; }
A helper function for processing the group's pattern and middleware
 @return array Returns an array with the elements: pattern, middlewareArr
A helper function for processing the group ' s pattern and middleware @return array Returns an array with the elements : pattern middlewareArr