public function get($id)
    {
        if (array_key_exists($id, $this->valueCache)) {
            return $this->valueCache[$id];
        }

        $entry = $this->getEntry($id);
        $value = $entry->getValue($this->delegate);

        if ($entry->isFactory()) {
            $this->entryCache[$id] = $entry;
        } else {
            $this->valueCache[$id] = $value;
        }

        return $value;
    }
public function get($id)
    {
        if (array_key_exists($id, $this->valueCache)) {
            return $this->valueCache[$id];
        }

        $entry = $this->getEntry($id);
        $value = $entry->getValue($this->delegate);

        if ($entry->isFactory()) {
            $this->entryCache[$id] = $entry;
        } else {
            $this->valueCache[$id] = $value;
        }

        return $value;
    }
public function get ( $ id ) { if ( array_key_exists ( $ id , $ this -> valueCache ) ) { return $ this -> valueCache [ $ id ] ; } $ entry = $ this -> getEntry ( $ id ) ; $ value = $ entry -> getValue ( $ this -> delegate ) ; if ( $ entry -> isFactory ( ) ) { $ this -> entryCache [ $ id ] = $ entry ; } else { $ this -> valueCache [ $ id ] = $ value ; } return $ value ; }
Returns value for the container entry with the given identifier.
@param string $id The entry identifier to look for
@return mixed The value for the entry
@throws NotFoundExceptionInterface If the entry cannot be found
@throws ContainerExceptionInterface If there are errors trying to load dependencies
Returns value for the container entry with the given identifier .