src/Container.php
private function linkMetaService(string $serviceName, string $key) 
    {
        // make sure the service link is there
        if (!isset($this->metadataService[$serviceName])) {
            $this->metadataService[$serviceName] = [];
        }

        if (!in_array($key, $this->metadataService[$serviceName])) {
            $this->metadataService[$serviceName][] = $key; 
        }
    }
private function linkMetaService(string $serviceName, string $key) 
    {
        // make sure the service link is there
        if (!isset($this->metadataService[$serviceName])) {
            $this->metadataService[$serviceName] = [];
        }

        if (!in_array($key, $this->metadataService[$serviceName])) {
            $this->metadataService[$serviceName][] = $key; 
        }
    }
Make sure the metadata and key are linked both ways.

@param string            $serviceName
@param string            $key
@return void