protected function parseFilters($filters)
    {
        $beforeFilter = array();
        $afterFilter = array();

        if (isset($filters[Route::BEFORE])) {
            $beforeFilter = array_intersect_key($this->filters, array_flip((array)$filters[Route::BEFORE]));
        }

        if (isset($filters[Route::AFTER])) {
            $afterFilter = array_intersect_key($this->filters, array_flip((array)$filters[Route::AFTER]));
        }

        return array($beforeFilter, $afterFilter);
    }
protected function parseFilters($filters)
    {
        $beforeFilter = array();
        $afterFilter = array();

        if (isset($filters[Route::BEFORE])) {
            $beforeFilter = array_intersect_key($this->filters, array_flip((array)$filters[Route::BEFORE]));
        }

        if (isset($filters[Route::AFTER])) {
            $afterFilter = array_intersect_key($this->filters, array_flip((array)$filters[Route::AFTER]));
        }

        return array($beforeFilter, $afterFilter);
    }
protected function parseFilters ( $ filters ) { $ beforeFilter = array ( ) ; $ afterFilter = array ( ) ; if ( isset ( $ filters [ Route :: BEFORE ] ) ) { $ beforeFilter = array_intersect_key ( $ this -> filters , array_flip ( ( array ) $ filters [ Route :: BEFORE ] ) ) ; } if ( isset ( $ filters [ Route :: AFTER ] ) ) { $ afterFilter = array_intersect_key ( $ this -> filters , array_flip ( ( array ) $ filters [ Route :: AFTER ] ) ) ; } return array ( $ beforeFilter , $ afterFilter ) ; }
Normalise the array filters attached to the route and merge with any global filters.

@param $filters
@return array
Normalise the array filters attached to the route and merge with any global filters .