protected function setContainer(
                $container,
        array $containerOptions = []
    ) {
        // check if container-type exists
        if ($this->containerExists($container) === false) {
            throw new Doozr_Cache_Service_Exception(
                sprintf('Error! Container: "%s" does not exist! Please choose an existing container.', $container)
            );
        }

        // Get container with new options
        return
            $this->container = $this->containerFactory(
                $container,
                array_merge(
                    $this->getDefaultOptions(),
                    $containerOptions
                )
            )
        ;
    }
protected function setContainer(
                $container,
        array $containerOptions = []
    ) {
        // check if container-type exists
        if ($this->containerExists($container) === false) {
            throw new Doozr_Cache_Service_Exception(
                sprintf('Error! Container: "%s" does not exist! Please choose an existing container.', $container)
            );
        }

        // Get container with new options
        return
            $this->container = $this->containerFactory(
                $container,
                array_merge(
                    $this->getDefaultOptions(),
                    $containerOptions
                )
            )
        ;
    }
protected function setContainer ( $ container , array $ containerOptions = [ ] ) { // check if container-type exists if ( $ this -> containerExists ( $ container ) === false ) { throw new Doozr_Cache_Service_Exception ( sprintf ( 'Error! Container: "%s" does not exist! Please choose an existing container.' , $ container ) ) ; } // Get container with new options return $ this -> container = $ this -> containerFactory ( $ container , array_merge ( $ this -> getDefaultOptions ( ) , $ containerOptions ) ) ; }
Setter for container.

@param string $container        The container to use
@param array  $containerOptions The options to pass to container

@author Benjamin Carl <opensource@clickalicious.de>

@return bool TRUE on success, otherwise FALSE

@throws Doozr_Cache_Service_Exception
Setter for container .