src/Viserio/Component/Container/Container.php
public function get($id)
    {
        if (! \is_string($id)) {
            throw new ContainerException(\sprintf(
                'The id parameter must be of type string, [%s] given.',
                \is_object($id) ? \get_class($id) : \gettype($id)
            ));
        }

        if (isset($this->bindings[$id])) {
            return $this->resolve($id);
        }

        $resolved = $this->getFromDelegate($id);

        if ((bool) $resolved) {
            return $resolved;
        }

        throw new NotFoundException(
            \sprintf('Abstract [%s] is not being managed by the container.', $id)
        );
    }
public function get($id)
    {
        if (! \is_string($id)) {
            throw new ContainerException(\sprintf(
                'The id parameter must be of type string, [%s] given.',
                \is_object($id) ? \get_class($id) : \gettype($id)
            ));
        }

        if (isset($this->bindings[$id])) {
            return $this->resolve($id);
        }

        $resolved = $this->getFromDelegate($id);

        if ((bool) $resolved) {
            return $resolved;
        }

        throw new NotFoundException(
            \sprintf('Abstract [%s] is not being managed by the container.', $id)
        );
    }
{@inheritdoc}