src/Viserio/Component/Routing/ResourceRegistrar.php
public function getResourceWildcard(string $value): string
    {
        if (isset($this->parameters[$value])) {
            $value = $this->parameters[$value];
        } elseif (isset(static::$parameterMap[$value])) {
            $value = static::$parameterMap[$value];
        } elseif (static::$singularParameters || \array_search('singular', $this->parameters, true) !== false) {
            $value = Str::singular($value);
        }

        return \str_replace('-', '_', $value);
    }
public function getResourceWildcard(string $value): string
    {
        if (isset($this->parameters[$value])) {
            $value = $this->parameters[$value];
        } elseif (isset(static::$parameterMap[$value])) {
            $value = static::$parameterMap[$value];
        } elseif (static::$singularParameters || \array_search('singular', $this->parameters, true) !== false) {
            $value = Str::singular($value);
        }

        return \str_replace('-', '_', $value);
    }
Format a resource parameter for usage.

@param string $value

@return string