src/Parameter/Service/ParameterService.php
public function get(string $key)
    {
        $parameter = $this->repository->findOneBy(['key' => $key]);

        if (!$parameter) {
            throw new OutOfRangeException('Parameter "'.$key.'" does not exist.');
        }

        $this->manager->detach($parameter);

        return $parameter->getValue();
    }
public function get(string $key)
    {
        $parameter = $this->repository->findOneBy(['key' => $key]);

        if (!$parameter) {
            throw new OutOfRangeException('Parameter "'.$key.'" does not exist.');
        }

        $this->manager->detach($parameter);

        return $parameter->getValue();
    }
Get parameter value

@param string $key
@return mixed
@throws \OutOfRangeException