Return a component by key.

@param string $key
@return object
@throws \Titon\Mvc\Exception\MissingComponentException
760741
public function get($key) {
        if (isset($this->_components[$key])) {
            return $this->_components[$key];
        }

        throw new MissingComponentException(sprintf('Application component %s does not exist', $key));
    }
215345
public function findItemByKey(string $key)
    {
        return $this->items->first(function (BaseItem $item, $index) use ($key) {
            return $item->getKey() == $key;
        });
    }
916828
public static function get($key)
    {
        exception_if(!array_has(self::$links, $key), LinkKeyNotFoundException::class, $key);

        return array_get(self::$links, $key);
    }
1020337
public function getType (string $key) : ComponentType
    {
        if (!array_key_exists($key, $this->types))
        {
            throw new UnknownComponentTypeException($key, array_keys($this->types));
        }

        $type = $this->types[$key];

        return $type;
    }
1014523
public function get($key)
    {
        if (array_key_exists($key, $this->container)) {
            return $this->container[$key];
        }

        return null;
    }
275604
public function getImporter($key)
    {
        foreach ($this->getImporters(true) as $k => $importer) {
            if ($key === $k) {
                return $importer;
            }
        }
        throw new \InvalidArgumentException(sprintf('Importer could not be found by key `%s`.', $key));
    }
1204491
public function get($key)
    {
        if ($this->isAcceptable($key)) {
            $key = $this->modelKey($key);
        }

        if ($this->has($key)) {
            return $this->objects[$key];
        }

        return null;
    }
417425
protected function itemAt($key)
    {
        if (isset($this->_data[$key])) {
            return $this->_data[$key];
        }
        return null;
    }
897531
public function get( $key ) {

		if ( $this->has( $key ) ) {
			return $this->container[strtolower( $key )];
		}

		throw new InvalidArgumentException( "{$key} is unknown" );
	}
204111
public function getItem($key)
    {
        if (($find = $this->searchItem($key)) !== null) {
            return $find;
        }

        throw new \Exception(htmlspecialchars("The item $key was not found."));
    }
105895
public function getKeyword($key) {
        if ($this->hasKeyword($key)) {
            return $this->_keywords[$key];
        }

        throw new MissingKeywordException(sprintf('Missing keyword %s', $key));
    }
1049638
public function get($key)
    {
        if (!$this->has($key)) {
            throw new Exception(sprintf(Exception::SETTING_KEY_NOT_EXISTS, $key));
        }

        return $this->getCachedSettings()->offsetGet($key);
    }
295139
protected function getCache($key) {
        $cached = ArrayHelper::getValue($this->cachedData, $key);
        if (!isset($cached)) {
            $cacheData = $this->resolveCacheComponent()->get($this->cacheKeyName);
            $cached = $this->cachedData[$key] = ArrayHelper::getValue($cacheData, $key);
        }
        return $cached;
    }
457793
public function get($key)
    {
        if(!$this->has($key)) {
            throw new MissingKeyException(sprintf('No value for requested key: %s', $key));
        }

        return $this->session->get($this->path.$key);
    }
926572
public function get($key)
    {
        $this->assertOpened();
        $key = (string) $key;
        if (isset($this->contents[$key])) {
            return $this->contents[$key];
        }
        return null;
    }
1255886
public function findOrFail($name)
    {
        $component = $this->find($name);

        if ($component !== null) {
            return $component;
        }

        throw new ComponentNotFoundException("Component [{$name}] does not exist!");
    }
1119928
public function get(string $key)
    {
        if ($this->has($key)) {
            return deep_clone($this->parameters[$key]);
        }

        throw ParameterNotFoundExceptionFactory::create($key);
    }