Returns a parameter by name.

@param string $name The parameter name.

@return BindingParameter The parameter.

@throws NoSuchParameterException If the parameter was not found.
964585
public function getParameter($name)
    {
        if (!isset($this->parameters[$name])) {
            throw new NoSuchParameterException(sprintf(
                'The parameter "%s" does not exist on type "%s".',
                $name,
                $this->name
            ));
        }

        return $this->parameters[$name];
    }
705781
protected function getParameter($name)
    {
        return array_key_exists($name, $this->templateVars)?$this->templateVars[$name]:null;
    }
1332218
protected function getParamFromRequest($name)
    {
        if (null !== $value = $this->requestStack->getCurrentRequest()->get($name)) {
            return $value;
        }

        if ((null !== $request = $this->requestStack->getParentRequest()) && null !== $value = $request->get($name)) {
            return $value;
        }

        if ((null !== $request = $this->requestStack->getMasterRequest()) && null !== $value = $request->get($name)) {
            return $value;
        }

        return null;
    }
145210
public function getParam($name)
    {
        if ( ! is_string($name) || ! isset($this->data[$name])) {
            return null;
        }

        return $this->data[$name];
    }
1171050
public function getByName($name) {
		$param = $this->findByName($name);
		if (empty($param)) {
			$param = new Parameter();
			$param->setName($name);
			$this->parameters->add($param);
		}

		return $param;
	}
279109
public function getParameter($name)
    {
        if (isset($this->_parameters[$name])) {
            return $this->_parameters[$name];
        }
        return null;
    }
718503
protected function getParameter(string $name)
    {
        if (!$this->container->has('parameter_bag')) {
            throw new ServiceNotFoundException('parameter_bag', null, null, [], sprintf('The "%s::getParameter()" method is missing a parameter bag to work properly. Did you forget to register your controller as a service subscriber? This can be fixed either by using autoconfiguration or by manually wiring a "parameter_bag" in the service locator passed to the controller.', \get_class($this)));
        }

        return $this->container->get('parameter_bag')->get($name);
    }
52734
public static function get($name)
	{
		return isset(self::$configParams[$name])
			? self::$configParams[$name]
			: null;
	}
1094287
public function getParameterTemplate($name)
    {
        if ($this->hasParametersTemplates()) {
            foreach ($this->getParametersTemplates() as $parameterTemplate) {
                if ($parameterTemplate->name === $name) {
                    return $parameterTemplate;
                }
            }
        }
        return null;
    }
381157
public function findByName($name)
    {
        $q = $this->createSelectQuery();
        $q->where($q->expr->eq('name', $q->bindValue($name, ':name')));
        return $this->loadOneFromQuery($q);
    }
677275
public function get($name)
    {
        if (!$paramConfig = $this->methodRequirements[$name]) {
            return;
        }

        $config = new Credential($name, $paramConfig);

        if (true === $config->required && !($this->getRequest()->request->has($name))) {
            throw new BadRequestUserException(
                $this->formatError($name, false, 'The parameter must be set')
            );
        }

        $param = $this->getRequest()->request->get($name);

        if (false === $config->nullable && !$param) {
            throw new BadRequestUserException(
                $this->formatError($name, $param, 'The parameter cannot be null')
            );
        }

        if (($config->default && $param === $config->default
        || ($param === null && true === $config->nullable)
        || (null === $config->requirements))) {
            return $param;
        }

        $this->validateParam($config, $param);

        return $param;
    }
1104891
public function getParameter($name)
    {
        foreach ($this->xmlRoot->parameter as $parameter) {
    		if ($method['name'] == $name) {
		        $moufRefParameter = new MoufXmlReflectionParameter($this, $parameter);
		        return $moufRefParameter;
    		}
    	}
    	return null;
    }
1252224
public function get($name)
    {
        $input = null;
        if ($this->has($name)) {
            $input = $this->_inputs[$name];
        }
        return $input;
    }
356119
public function get(string $name)
    {
        if ($this->has($name)) {
            return $this->values[$name];
        } else {
            return $this->throwNotFound($name);
        }
    }
155143
public function setParameter($name, $parameter)
  {
    if ($this->isLocked()) {
      return $this->getObj()->setParameter($name, $parameter)->setLocked();
    } else {
      return parent::setParameter($name, $parameter);
    }
  }
674472
public function getParameter($name)
    {
        $config = $this->get('config');
        if (!isset($config['parameters'][$name])) {
            throw new \InvalidArgumentException(sprintf('You have requested a non-existent parameter "%s".', $name));
        }

        return $config['parameters'][$name];
    }
1000099
public static function lookupByName($name)
    {
        if (empty($name)) {
            throw new \InvalidArgumentException('Argument "name" cannot be empty');
        }

        if (!isset(self::$methods_config[$name])) {
            throw new \InvalidArgumentException('Method "' . $name . '" doesn\'t exist');
        }

        return self::$methods_config[$name];
    }