src/NormalizeWritableContainerCapableTrait.php
protected function _normalizeWritableContainer($container)
    {
        $container = $this->_normalizeContainer($container);

        if ($container instanceof BaseContainerInterface) {
            throw $this->_createInvalidArgumentException(
                $this->__('Invalid container'),
                null,
                null,
                $container
            );
        }

        return $container;
    }
protected function _normalizeWritableContainer($container)
    {
        $container = $this->_normalizeContainer($container);

        if ($container instanceof BaseContainerInterface) {
            throw $this->_createInvalidArgumentException(
                $this->__('Invalid container'),
                null,
                null,
                $container
            );
        }

        return $container;
    }
protected function _normalizeWritableContainer ( $ container ) { $ container = $ this -> _normalizeContainer ( $ container ) ; if ( $ container instanceof BaseContainerInterface ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Invalid container' ) , null , null , $ container ) ; } return $ container ; }
Normalizes a writable container.

@since [*next-version*]

@param array|ArrayAccess|stdClass $container The writable container to normalize.

@throws InvalidArgumentException If not a valid writable container.

@return array|ArrayAccess|stdClass A container that can be written to.
Normalizes a writable container .