ezConfigResolver = $ezConfigResolver; $this->container = $container; } /** * @param string $paramName * @param string $scope * @return mixed * @throws \Exception */ public function getParameter($paramName, $scope = null) { $parsed = explode('.', $paramName, 2); if (count($parsed) === 1) { throw new \Exception("Parameter '$paramName' is not in the good format for flexible configuration resolving"); } if ($this->ezConfigResolver->hasParameter($parsed[1], $parsed[0], $scope)) { return $this->ezConfigResolver->getParameter($parsed[1], $parsed[0], $scope); } return $this->container->getParameter($paramName); } }