public getParameter ( string $paramName, string $namespace = null, string $scope = null ) : mixed | ||
$paramName | string | The parameter name, without $prefix and the current scope (i.e. siteaccess name). |
$namespace | string | Namespace for the parameter name. If null, the default namespace should be used. |
$scope | string | The scope you need $paramName value for. |
리턴 | mixed |
public function getParameter($paramName, $namespace = null, $scope = null);
/** * Returns the parameter value from config resolver. * * @param string $parameterName * @param string $namespace * @param mixed $defaultValue * * @return mixed */ protected function getParameter($parameterName, $namespace, $defaultValue = null) { if ($this->configResolver->hasParameter($parameterName, $namespace)) { return $this->configResolver->getParameter($parameterName, $namespace); } return $defaultValue; }