src/Application.php
private function getAllResponseFilters($preResponse = false)
    {
        $filters = [];

        foreach ($this->modules as $module) {

            $moduleFilters = $module->getResponseFilters();

            foreach($moduleFilters as $filter){
                if ($preResponse && $filter->isPreResponse()){
                    $filters[] = $filter;
                } elseif (!$preResponse && !$filter->isPreResponse()){
                    $filters[] = $filter;
                }
            }
        }

        return $filters;
    }
private function getAllResponseFilters($preResponse = false)
    {
        $filters = [];

        foreach ($this->modules as $module) {

            $moduleFilters = $module->getResponseFilters();

            foreach($moduleFilters as $filter){
                if ($preResponse && $filter->isPreResponse()){
                    $filters[] = $filter;
                } elseif (!$preResponse && !$filter->isPreResponse()){
                    $filters[] = $filter;
                }
            }
        }

        return $filters;
    }
private function getAllResponseFilters ( $ preResponse = false ) { $ filters = [ ] ; foreach ( $ this -> modules as $ module ) { $ moduleFilters = $ module -> getResponseFilters ( ) ; foreach ( $ moduleFilters as $ filter ) { if ( $ preResponse && $ filter -> isPreResponse ( ) ) { $ filters [ ] = $ filter ; } elseif ( ! $ preResponse && ! $ filter -> isPreResponse ( ) ) { $ filters [ ] = $ filter ; } } } return $ filters ; }
Get's an array of response filters from all registered modules.

@return \Rhubarb\Crown\ResponseFilters\ResponseFilter[]
Get s an array of response filters from all registered modules .