public static function getRequestFilters(bool $weigh = true): array
    {
        $filters = array();
        
        $components = self::getComponents();
        foreach ($components as $component) {
            if (!$component->isRequestFilter()) {
                continue;
            }
            
            $filters[] = $component->getInstance();
        }
        
        if ($weigh) {
            usort($filters, function ($filterA, $filterB) {
                return ($filterB->weight() - $filterA->weight());
            });
        }
        
        return $filters;
    }
public static function getRequestFilters(bool $weigh = true): array
    {
        $filters = array();
        
        $components = self::getComponents();
        foreach ($components as $component) {
            if (!$component->isRequestFilter()) {
                continue;
            }
            
            $filters[] = $component->getInstance();
        }
        
        if ($weigh) {
            usort($filters, function ($filterA, $filterB) {
                return ($filterB->weight() - $filterA->weight());
            });
        }
        
        return $filters;
    }
public static function getRequestFilters ( bool $ weigh = true ) : array { $ filters = array ( ) ; $ components = self :: getComponents ( ) ; foreach ( $ components as $ component ) { if ( ! $ component -> isRequestFilter ( ) ) { continue ; } $ filters [ ] = $ component -> getInstance ( ) ; } if ( $ weigh ) { usort ( $ filters , function ( $ filterA , $ filterB ) { return ( $ filterB -> weight ( ) - $ filterA -> weight ( ) ) ; } ) ; } return $ filters ; }
Get all classes configured by addons which implement the RequestFilter interface.

@param bool $weigh
Use the weight of the filters to pre-sort the result.

@return RequestFilter[] All classes configured by addons which implement the RequestFilter interface.
Get all classes configured by addons which implement the RequestFilter interface .