public function setPatterns(array $patterns)
    {
        $patternValues = implode("", $patterns);
        if (mb_strlen($patternValues) < strlen($patternValues)) {
            $this->options['multibytePattern'] = true;
        }
        $this->options = array_merge($this->options, $patterns);

        return $this;
    }
public function setPatterns(array $patterns)
    {
        $patternValues = implode("", $patterns);
        if (mb_strlen($patternValues) < strlen($patternValues)) {
            $this->options['multibytePattern'] = true;
        }
        $this->options = array_merge($this->options, $patterns);

        return $this;
    }
public function setPatterns ( array $ patterns ) { $ patternValues = implode ( "" , $ patterns ) ; if ( mb_strlen ( $ patternValues ) < strlen ( $ patternValues ) ) { $ this -> options [ 'multibytePattern' ] = true ; } $ this -> options = array_merge ( $ this -> options , $ patterns ) ; return $ this ; }
Set regexp patterns for routing parameters

If any of your patterns contain multibyte values, the `multibytePattern`
mode will be enabled.

@param array $patterns The patterns to apply to routing elements
@return $this
Set regexp patterns for routing parameters