@param string $name

@throws NotFoundException

@return FilterFactoryInterface
6554
public function getFilterFactoryByName(string $name): FilterFactoryInterface
    {
        if (!isset($this->filterFactories[$name])) {
            throw new NotFoundException(sprintf("Filter factory with name '%s' was not found.", $name));
        }

        return $this->filterFactories[$name];
    }
1153058
public function factory($name, array $args = array())
    {
        foreach ($this->factories as $factory) {
            $command = $factory->factory($name, $args);
            if ($command) {
                return $command;
            }
        }
    }
236834
public function remove($name)
    {
        $loader = $this->loader($name);
        $path = $loader->path();

        if (!File::isFile($path)) {
            throw new NotFound\Path($path);
        }

        return File::remove($path);
    }
617162
protected function createFilterArray($name)
    {
        $config = $this->getConfig($name, 'filters', array());
        $filters = array();
        foreach ($config as $filter) {
            $filters[] = $this->filters->get($filter);
        }

        return $filters;
    }
276474
protected function filterActionMethodName($name)
    {
        $filter = new FilterChain;
        $filter->attachByName('Zend\Filter\Word\CamelCaseToDash');
        $filter->attachByName('StringToLower');
        return rtrim(preg_replace('/action$/', '', $filter->filter($name)), '-');
    }
1156854
public function getFilter($name = '')
    {
        return isset($this->filters[$name]) ? $this->filters[$name] : false;
    }
1021027
public function removeFilter($name)
    {
        if (isset($this->filters[$name])) {
            unset($this->filters[$name]);
        }

        return $this;
    }
1146322
public static function get($name) 
    {
        self::load();
        if (!array_key_exists($name, self::$_factories)) {
            return null;
        }
        return self::$_factories[$name];
    }
1046730
public function getFilter($name)
    {
        $filter = $this->getCompiler()->getFilter($name);
        if (is_string($filter) && !function_exists($filter) && class_exists($filter)) {
            $filter = new $filter();
        }

        return $filter;
    }
90366
protected function ruleFactory(string $name, array $parameters): RuleInterface
	{
		return $this->container->get($this->getRuleClassName($name), $parameters);
	}
574144
public function get($name)
    {
        if (! $this->has($name)) {
            $message = sprintf('No responder for failed rule "%s"', $name);
            throw new Exception($message);
        }
        $factory = $this->factories[$name];
        return $factory();
    }
448007
public function get($name)
    {
        $item = $this->getFactory($name)->get();

        if ($item instanceof ContainerAwareInterface) {
            $item->setContainer($this);
        }

        return $item;
    }
13935
public function getReporterFactory($name)
    {
        $definition = $this->getReporterDefinition($name);
        if (! isset($definition['factory'])) {
            $definition['factory'] = null;
        }
        return $definition['factory'];
    }
590556
final public function getParameter(string $name)
    {
        if (! array_key_exists($name, $this->parameters)) {
            throw new InvalidArgumentException("Filter parameter '" . $name . "' is not set.");
        }
        return $this->parameters[$name];
    }
336996
public function removeFilterOption($name)
    {
        $this->filterOptions->remove($this->filterOptions->find('name', $name));
        return $this;
    }
563723
public function getFilter($name)
    {
        if (isset($this->filters[$name])) {
            return $this->filters[$name];
        } else {
            return null;
        }
    }
542139
public function getFilterByName($name, $attributes = [])
    {
        $filter = null;
        $name = str_replace('\\', DS, ucfirst($name)) . 'Filter.php';
        $file = $this->loader->findFirst($this->application->config('directory.filter') . DS . $name);
        if ($file) {
            $class = $file->getClassName();
            $filter = new $class();
        }

        // not found.
        if (! $filter) {
            throw new Exception\NotFoundException('No such filter. -> ' . $name);
        }
        
        $filter->setAttributes($attributes);
        $filter->setContainer($this->container);
        $this->container->injectDependency($filter);
        return $filter;
    }