Get a delay-initialized item by name.

@param string $name  name of item
@return mixed
@throws Exception
542092
public function getItem(string $name)
    {
        if (isset($this->__delayItems[$name])) {

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

        if (!is_callable($this->__delayCtors[$name] ?? false)) {

            throw new Exception(
                "Item {$name} not found.",
                Exception::ITEM_NOT_FOUND
            );
        }

        return $this->__delayItems[$name] = $this->__delayCtors[$name](
            ...$this->__delayCtorArgs
        );
    }
1292888
private function beforeTimer(string $name)
    {
        $contextData = [
            'logid'       => uniqid(),
            'spanid'      => 0,
            'uri'         => $this->getTimerUri($name),
            'requestTime' => microtime(true),
        ];
        RequestContext::setContextData($contextData);
    }
319513
public function get($name)
	{
		$namespaced = $this->namespace.':'.$name;

		$queued   = $this->length($namespaced, 'list');
		$delayed  = $this->length($namespaced.':delayed', 'zset');
		$reserved = $this->length($namespaced.':reserved', 'zset');

		return array('queued' => $queued, 'delayed' => $delayed, 'reserved' => $reserved);
	}
298029
public static function get($name)
    {
        static::isOn(true);

        $item = static::reach($name);

        if (($item['lifetime'] < time() && $item['lifetime'] > 0)) {
            static::remove($name);

            exception(SessionKeyNotFoundException::class, $name);
        } else {
            return $item['object'];
        }
    }
1200131
public function get($name)
    {
        if (!$this->has($name)) {
            throw new ItemNotFoundException($name);
        }

        return $this->items[$name];
    }
792005
public function getFinder(string $name)
    {
        return $this->first(function (FinderItem $item) use ($name) {
            return $item->getName() === $name;
        });
    }
717912
public function get($name)
    {
        // create a loader by the same path and name.
        if(!isset($this->pathRegistry[$name]))
            throw new \Exedra\Exception\NotFoundException('Path with registry ['.$name.'] does not exist.');

        return $this->pathRegistry[$name];
    }
238430
public function getQueue($name, $timeout = null)
    {
        if (!is_string($name)) {
            throw new Exception('$name is not a string');
        }

        if ((null !== $timeout) && !is_integer($timeout)) {
            throw new Exception('$timeout must be an integer');
        }

        if(!$this->getQueueId($name)) {
            $this->create($name, $timeout);
        }

        $q = new Queue($name, $timeout);
        $q->setManager($this);
        return $q;
    }
156065
public static function retrieve($name) {

        try {

            $class = get_called_class();

            $cookie = new $class($name);

            return $cookie->load();

        } catch (CookieException $ce) {

            throw $ce;

        }

    }
1119376
protected function getNamedItem(string $name)
    {
        if (array_key_exists($name, $this->items)) {
            return $this->items[$name];
        }

        return null;
    }
714027
public static function get($name)
    {
        if (isset($_REQUEST[$name])) {
            return $_REQUEST[$name];
        }

        if (isset($_GET[$name])) {
            return $_GET[$name];
        }

        return;
    }
80800
function get ($name)
  {
    if (isset($this->items[$name]))
      return $this->items[$name];
    throw new \OutOfBoundsException (sprintf ("%s is not registered on %s.%sCurrently registered: %s", $name,
      static::class, PHP_EOL, $this->items ? implode (', ', array_keys ($this->items)) : '(empty)'));
  }
1143185
public function getLoadedPlugin($name)
    {
        if (!isset($this->loadedPlugins[$name]) || is_null($this->loadedPlugins[$name])) {
            throw new \Exception("The plugin '$name' has not been loaded.");
        }
        return $this->loadedPlugins[$name];
    }
342991
public function stop(?string $name = null): Item
    {
        $name = $name ?? self::BASE_ITEM;
        $item = $this->items[$name] ?? null;

        if (null !== $item) {
            unset($this->activeItems[$name]);

            return $item->stop();
        }

        throw new \InvalidArgumentException(sprintf('Item with name %s not found!', $name));
    }
955890
public function getByName($name, $throwException = true)
    {
        foreach ($this as $element) {

            if (!$element instanceof Element\NamedElement) {
                throw new Exception\CollectionException();
            }

            if ($element->getName() === $name) {
                return $element;
            }
        }

        if ($throwException) {
            throw new Exception\NotFoundException();
        }

        return null;
    }
1370588
public function resolve($name)
        {
            if (!isset(self::$resources[$name])) {
                throw new Exception("[$name] is not a known resource.");
            }

            return isAke(self::$resources, $name);
        }
297949
public function getAuthItem($name)
	{
		return isset($this->_items[$name])?$this->_items[$name]:null;
	}