bundle/Core/MVC/Symfony/Matcher/ConfigResolverBased.php
public function doMatch($value): bool
    {
        $config = $this->values[0];
        $namespace = $this->values[1] ?? null;

        if ($this->configResolver->hasParameter($config, $namespace)) {
            $configValue = $this->configResolver->getParameter($config, $namespace);
            $configValue = !is_array($configValue) ? [$configValue] : $configValue;

            return in_array($value, $configValue, true);
        }

        return false;
    }
public function doMatch($value): bool
    {
        $config = $this->values[0];
        $namespace = $this->values[1] ?? null;

        if ($this->configResolver->hasParameter($config, $namespace)) {
            $configValue = $this->configResolver->getParameter($config, $namespace);
            $configValue = !is_array($configValue) ? [$configValue] : $configValue;

            return in_array($value, $configValue, true);
        }

        return false;
    }
public function doMatch ( $ value ) : bool { $ config = $ this -> values [ 0 ] ; $ namespace = $ this -> values [ 1 ] ?? null ; if ( $ this -> configResolver -> hasParameter ( $ config , $ namespace ) ) { $ configValue = $ this -> configResolver -> getParameter ( $ config , $ namespace ) ; $ configValue = ! is_array ( $ configValue ) ? [ $ configValue ] : $ configValue ; return in_array ( $ value , $ configValue , true ) ; } return false ; }
Performs the match against the provided value.

This works by comparing the value against the parameter from config resolver.

First element in the value array should be the name of the parameter and the
second should be the namespace.

@param mixed $value

@return bool
Performs the match against the provided value .