src/Container/AurynContainer.php
public function get($id)
    {
        $entry = null;

        $this->has($id) && $entry = $this->resolve($id);

        if (is_null($entry) === true) {
            $message = 'Alias (%s) is not being managed by the container';

            $message = (string) sprintf($message, $id);

            throw new Exception\NotFoundException($message);
        }

        return $entry;
    }
public function get($id)
    {
        $entry = null;

        $this->has($id) && $entry = $this->resolve($id);

        if (is_null($entry) === true) {
            $message = 'Alias (%s) is not being managed by the container';

            $message = (string) sprintf($message, $id);

            throw new Exception\NotFoundException($message);
        }

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

@throws \Psr\Container\NotFoundExceptionInterface
@throws \Psr\Container\ContainerExceptionInterface

@param  string $id
@return mixed