private function resolveContainer(): ContainerInterface
    {
        if ($this->container === null) {
            $container = $this->containerFactory->build($this);

            if (!$container instanceof ContainerInterface) {
                throw new \RuntimeException(
                    "Invalid factory result, expected ContainerInterface"
                );
            }

            $this->container = $container;
        }

        return $this->container;
    }
private function resolveContainer(): ContainerInterface
    {
        if ($this->container === null) {
            $container = $this->containerFactory->build($this);

            if (!$container instanceof ContainerInterface) {
                throw new \RuntimeException(
                    "Invalid factory result, expected ContainerInterface"
                );
            }

            $this->container = $container;
        }

        return $this->container;
    }
private function resolveContainer ( ) : ContainerInterface { if ( $ this -> container === null ) { $ container = $ this -> containerFactory -> build ( $ this ) ; if ( ! $ container instanceof ContainerInterface ) { throw new \ RuntimeException ( "Invalid factory result, expected ContainerInterface" ) ; } $ this -> container = $ container ; } return $ this -> container ; }
Instantiate the container if not and return it

@return ContainerInterface
Instantiate the container if not and return it