System\Route::collection PHP 메소드

collection() 공개 정적인 메소드

Start a collection of routes with common actions
public static collection ( $actions, $definitions )
    public static function collection($actions, $definitions)
    {
        // start collection
        static::$collection[] = $actions;
        // run definitions
        call_user_func($definitions);
        // end of collection
        array_pop(static::$collection);
    }