System\Route::collection PHP Method

collection() public static method

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);
    }