/** * Factory method for AssetFilterCollection * * @param string $ext The extension An array of filters to put in the collection * @return FilterCollection */ protected function _makeFilters($ext, $target) { $config = array('paths' => $this->_Config->paths($ext, $target), 'target' => $target, 'theme' => $this->_Config->theme()); $filters = $this->_Config->filters($ext, $target); $filterSettings = $this->_Config->filterConfig($filters); return new AssetFilterCollection($filters, $config, $filterSettings); }