Get shared service for $key.

If no service is shared, null will be returned.

@param string $key
@return null|object
966874
protected function getSharedService(string $key): ?object
    {
        $shared = $this->getShared();
        if (array_key_exists($key, $shared) === true) {
            return $shared[$key];
        }

        return null;
    }
906857
private function get( $key )
	{
		if ( isset($this->serverData[ $key ]) )
		{
			return $this->serverData[ $key ];
		}
		else
		{
			return null;
		}
	}
763138
protected function retrieve($key)
    {
        if (!is_null($cache = $this->redis->get($key))) {
            return unserialize($cache);
        }

        return null;
    }
120187
public function get_shared_object( $key, $target = null ) {
		! isset( $target ) and $target = $this->app->plugin_name;

		return isset( self::$_shared_object[ $target ][ $key ] ) ? self::$_shared_object[ $target ][ $key ] : null;
	}
139158
protected function get($key)
    {
        return isset($this->errors[$key]) ? $this->errors[$key] : null;
    }
1292015
protected function getEmbed($key)
    {
        if (true === $this->isEmbedHasOne($key)) {
            $this->touch();
            return $this->hasOneEmbeds->get($key);
        }
        if (true === $this->isEmbedHasMany($key)) {
            $this->touch();
            return $this->hasManyEmbeds->get($key);
        }
        return null;
    }
232817
public function getServer($key = null)
    {
        if ($key === null) {
            return $this->server;
        } else {
            return (isset($this->server[$key])) ? $this->server[$key] : null;
        }
    }
305182
public function get($key) {
        if (isset($this->_session->{$key})) {
            return $this->_session->{$key};
        }
        return null;
    }
44150
public function getByKey($key)
    {
        $storage = $this->getStorage();

        return isset($storage[$key]) ? $storage[$key] : null;
    }
518754
public function get($key) {
        $filename = $this->generateFileLocation($key);
        if (file_exists($filename) && is_readable($filename)) {
            $cache = unserialize(file_get_contents($filename));
            if ($cache['expires'] > time()) {
                return $cache['content'];
            } else {
                unlink($filename);
            }
        }
        return null;
    }
681220
public function server($key = NULL)
    {
        if ( !$key ) {
            return $this->server->all();
        }

        return $this->server->get($key);
    }
932520
public static function get($key = null)
    {
        if (null === self::$instance) {
            self::$instance = new self();
        }

        return $key ? self::$instance[$key] : self::$instance;
    }
31545
public function get($key){
		$mc=$this->getMemcache();
		if(empty($mc))return NULL;
		$this->queries_get_count++;
		return $mc->get($key);
		}
316078
public function get($key) {
		
		if (isset($this->_data[$key])) {
			return $this->_data[$key];
		}
		
		if (isset($this->registered[$key])) {
			return $this->_data[$key] = call_user_func($this->registered[$key], $this);
		}
		
		return null;	
	}
948351
public function get($key)
    {
        $value = $this->connection()->get($this->prefix.$key);

        return ! is_null($value) ? $this->unserialize($value) : null;
    }
714838
public function get($key)
    {
        if (array_key_exists($key, $this->store)) {
            return $this->store[$key];
        }
        return null;
    }
921278
public function get($key = null){
        if(null === $key){
            return array_merge($this->_data, $this->_dirty);
        }
        else{
            if(isset($this->_dirty[$key])){
                return $this->_dirty[$key];
            }
            elseif(isset($this->_data[$key])){
                return $this->_data[$key];
            }
            else{
                return null;
            }
        }
    }