src/Container.php
public function getParameter(string $name, $default = null)
    {
        return $this->hasParameter($name) ? $this->parameters[$name] : $default;
    }
public function getParameter(string $name, $default = null)
    {
        return $this->hasParameter($name) ? $this->parameters[$name] : $default;
    }
Get the parameter with the the given name, or return the default
value if the parameter is not set.

@param string            $name The parameter name.
@param mixed             $default The returned default value if the parameter is not set.
@return mixed