src/Keboola/OAuth/OAuthController.php
protected function getParam($name, $required = false)
    {
        if (!$this->container->hasParameter($name)) {
            if ($required) {
                throw new SyrupComponentException(500, "Parameter '{$name}' not set in parameters.yml");
            } else {
                return null;
            }
        } else {
            return $this->container->getParameter($name);
        }
    }
protected function getParam($name, $required = false)
    {
        if (!$this->container->hasParameter($name)) {
            if ($required) {
                throw new SyrupComponentException(500, "Parameter '{$name}' not set in parameters.yml");
            } else {
                return null;
            }
        } else {
            return $this->container->getParameter($name);
        }
    }
protected function getParam ( $ name , $ required = false ) { if ( ! $ this -> container -> hasParameter ( $ name ) ) { if ( $ required ) { throw new SyrupComponentException ( 500 , "Parameter '{$name}' not set in parameters.yml" ) ; } else { return null ; } } else { return $ this -> container -> getParameter ( $ name ) ; } }
Get an attribute from parameters.yml

@param $name Name of the attribute
@param $required (bool) Whether the attribute is mandatory (false by default)
@return mixed
Get an attribute from parameters . yml