protected function _getReferenceContainer($config)
    {
        try {
            $container = $this->_containerHas($config, static::K_REFERENCE_CONTAINER)
                ? $this->_containerGet($config, static::K_REFERENCE_CONTAINER)
                : $this->_getContainer();
        } catch (RootException $e) {
            throw $this->_createRuntimeException('Could not retrieve a valid referencing container');
        }

        return $container;
    }
protected function _getReferenceContainer($config)
    {
        try {
            $container = $this->_containerHas($config, static::K_REFERENCE_CONTAINER)
                ? $this->_containerGet($config, static::K_REFERENCE_CONTAINER)
                : $this->_getContainer();
        } catch (RootException $e) {
            throw $this->_createRuntimeException('Could not retrieve a valid referencing container');
        }

        return $container;
    }
protected function _getReferenceContainer ( $ config ) { try { $ container = $ this -> _containerHas ( $ config , static :: K_REFERENCE_CONTAINER ) ? $ this -> _containerGet ( $ config , static :: K_REFERENCE_CONTAINER ) : $ this -> _getContainer ( ) ; } catch ( RootException $ e ) { throw $ this -> _createRuntimeException ( 'Could not retrieve a valid referencing container' ) ; } return $ container ; }
Retrieves the reference container to create the child with.

@since [*next-version*]

@param array|ArrayAccess|BaseContainerInterface|stdClass|null $config The config of the product, the child of which to get the container for.

@throws RuntimeException If the reference container could not be retrieved.

@return BaseContainerInterface|null The reference container, if any.
Retrieves the reference container to create the child with .