src/InteropContainer.php
public function get($id)
    {
        try {
            return $this->getInstanceOf($id);
        } catch (\King23\DI\Exception\NotFoundException $e) {

            // convert exception to interface compatible exception
            throw new \King23\DI\Interop\NotFoundException($e->getMessage(), $e->getCode(), $e);
        }

    }
public function get($id)
    {
        try {
            return $this->getInstanceOf($id);
        } catch (\King23\DI\Exception\NotFoundException $e) {

            // convert exception to interface compatible exception
            throw new \King23\DI\Interop\NotFoundException($e->getMessage(), $e->getCode(), $e);
        }

    }
Finds an entry of the container by its identifier and returns it.

@param string $id Identifier of the entry to look for.

@throws NotFoundException  No entry was found for this identifier.
@throws ContainerException Error while retrieving the entry.

@return mixed Entry.