src/Container.php
public function get($id)
    {
        if ($this->has($id)) {
            $entry = $this->entries[$id];
            if (is_callable($entry)) {
                $entry = call_user_func($entry, $this);
            }
            return $entry;
        }
        throw new NotFoundException("Service with ID '$id' not found.");
    }
public function get($id)
    {
        if ($this->has($id)) {
            $entry = $this->entries[$id];
            if (is_callable($entry)) {
                $entry = call_user_func($entry, $this);
            }
            return $entry;
        }
        throw new NotFoundException("Service with ID '$id' not found.");
    }
{@inheritdoc}