src/Container.php
private function getServiceOrParameter($id)
    {
        if (array_key_exists($id, $this->aliases)) {
            return $this->offsetGet($this->aliases[$id]);
        }

        if (array_key_exists($id, $this->values)) {
            return $this->values[$id];
        }

        if (array_key_exists($id, $this->definitions)) {
            return $this->values[$id] = $this->build($this->definitions[$id]);
        }

        throw new InvalidArgumentException(sprintf('Identifier "%s" is not defined.', $id));
    }
private function getServiceOrParameter($id)
    {
        if (array_key_exists($id, $this->aliases)) {
            return $this->offsetGet($this->aliases[$id]);
        }

        if (array_key_exists($id, $this->values)) {
            return $this->values[$id];
        }

        if (array_key_exists($id, $this->definitions)) {
            return $this->values[$id] = $this->build($this->definitions[$id]);
        }

        throw new InvalidArgumentException(sprintf('Identifier "%s" is not defined.', $id));
    }
private function getServiceOrParameter ( $ id ) { if ( array_key_exists ( $ id , $ this -> aliases ) ) { return $ this -> offsetGet ( $ this -> aliases [ $ id ] ) ; } if ( array_key_exists ( $ id , $ this -> values ) ) { return $ this -> values [ $ id ] ; } if ( array_key_exists ( $ id , $ this -> definitions ) ) { return $ this -> values [ $ id ] = $ this -> build ( $ this -> definitions [ $ id ] ) ; } throw new InvalidArgumentException ( sprintf ( 'Identifier "%s" is not defined.' , $ id ) ) ; }
Return the service associated with this unique identifier

@param string $id The unique identifier
@return mixed
@throws InvalidArgumentException
Return the service associated with this unique identifier