AssetCompress\Factory::buildFilter PHP Method

buildFilter() protected method

Create a single filter
protected buildFilter ( string $name, array $config ) : MiniAsset\Filter\FilterInterface
$name string The name of the filter to build.
$config array The configuration for the filter.
return MiniAsset\Filter\FilterInterface
    protected function buildFilter($name, $config)
    {
        $className = App::className($name, 'Filter');
        if (!class_exists($className)) {
            $className = App::className('AssetCompress.' . $name, 'Filter');
        }
        $className = $className ?: $name;
        return parent::buildFilter($className, $config);
    }