Get specific value by name of an entry if found
If entry not found, get value by name of default

@param string     $category
@param string|int $context
@param string     $name
@param mixed      $default

@return mixed
@throws ServiceConfigException
485385
public function getValue($category, $context, $name, $default = null)
    {
        $model = $this->getModel($category);

        return $model->getValue($context, $name, $default);
    }
836511
public static function profile($name, array $context = [], $category = 'application'): void
    {
        $data = [
            '_profile_stats' => [
                'startTime' => \microtime(true),
                'startMem'  => \memory_get_usage(),
            ],
            '_profile_start' => $context,
            '_profile_end'   => null,
            '_profile_msg'   => null,
        ];

        $profileKey = $category . '|' . $name;

        if (\in_array($profileKey, self::$keyQueue, 1)) {
            throw new \InvalidArgumentException("Your added profile name [$name] have been exists!");
        }

        self::$keyQueue[] = $profileKey;
        self::$profiles[$category][$name] = $data;
    }
806879
public function getParam($name, $default = null)
    {
        $params = $this->_context->params;
        return isset($params[$name]) ? $params[$name] : $default;
    }
859501
public function get($name,$default=null)
    {

        // Return null if the service is not in the container
        if(!isset($this->instances[$name]))
             return $default;

        if(array_key_exists($name,$this->bind))
            return $this->resolve($name);


        // Check if the service has been resolved in the container
        if(!$this->resolved[$name]){

            $this->instances[$name] = $this->resolve($name);
            

            return $this->instances[$name];
        }

        return $this->resolve($name);
    }
1089122
public function getValue($name, $default = null)
    {
        $setting = $this->get($name);

        if ($setting) {
            return $setting->getValue();
        }

        return $default;
    }
653633
public <R> R get(@NotNull final String name, R defaultValue) {
        if (context.containsKey(name)) {
            return get(name);
        } else {
            return defaultValue;
        }
    }
764757
public function get($module, $name, $default = false)
    {
        $this->initializeOnDemand();
        return $this->arrayConfig->get($module, $name, $default);
    }
37221
public function getConfigParam($name, $default = null)
    {
        $this->init();

        if (isset($this->_aConfigParams[$name])) {
            $value = $this->_aConfigParams[$name];
        } elseif (isset($this->$name)) {
            $value = $this->$name;
        } else {
            $value = $default;
        }

        return $value;
    }
1106450
public function getValue($name, $defaultPrefix, $fileName)
    {
        $this->setDefaultPrefix($defaultPrefix);

        $filePath = $this->getDefaultFileDir().$fileName;
        $defaultPrefix = $this->getDefaultPrefix();
        if (!isset($_ENV[$defaultPrefix])) {
            if(!file_exists($filePath))
                throw new ConfigException(sprintf('%s not found', $filePath));
            $_ENV[$defaultPrefix] = Yaml::parseFile($filePath);
        }

        if (!isset($_ENV[$defaultPrefix][$name])) {
            $_ENV[$defaultPrefix] = Yaml::parseFile($filePath);
        }

        if (!isset($_ENV[$defaultPrefix][$name])) {
            throw new ConfigException(sprintf('%s undefined key:%s ', $filePath, $name));
        }
        return $_ENV[$defaultPrefix][$name];
    }
33375
public function getConfig($name, $default = null)
    {
        $value = $this->config->get($name);

        return $value === null ? $default : $value;
    }
1245394
protected function getSubmittedValue($name, $default = null)
    {
        if (empty($this->submittedValues)) {
            $this->setSubmittedValues();
        }
        return array_key_exists($name, $this->submittedValues) ? $this->submittedValues[$name] : $default;
    }
616973
public function get( $name, $default = null )
	{
		if( ( $entry = $this->object->get( $name ) ) !== null ) {
			return $entry;
		}

		return $default;
	}
151069
public function getByClaimName($name, callable $callback = null, $default = null)
    {
        return $this->filter(function (Claim $claim) use ($name) {
            return $claim->getName() === $name;
        })->first($callback, $default);
    }
501858
public function start($name, $category = null)
    {
        return end($this->activeSections)->startEvent($name, $category);
    }
1318660
function get($name, $default=null) {
    $map = array_map(function($name) use($default){
      if ($this->__isset($name)) {
        return $this->__attributes[$name]['value'];
      } elseif ($this->propertyExists($name, 'default')) {
        return $this->__attributes[$name]['default'];
      }

      return (null === $default) ? null : $default;
    }, (array) $name);

    return count($map) > 1 ? $map : $map[0];
  }
1071854
public function profile($name, array $context = [], $category = 'application')
    {
        $data = [
            '_profile_stats' => [
                'startTime' => microtime(true),
                'startMem' => memory_get_usage(),
            ],
            '_profile_start' => $context,
            '_profile_end' => null,
        ];

        $this->activeKey = $category . '|' . $name;
        $this->profiles[$category][$name] = $data;
    }
1276062
public function get(string $name, $default = null, $onlyReturnFirst = true)
    {
        if ($this->has($name)) {
            $value = $this->data[$this->normalizeName($name)];

            if ($onlyReturnFirst) {
                return $value[0];
            }
        } else {
            $value = $default;
        }

        return $value;
    }