protected function containerFactory($container, array $containerOptions = [])
    {
        $container = ucfirst(strtolower($container));
        $class     = __CLASS__.'_Container_'.$container;
        $file      = DOOZR_DOCUMENT_ROOT.'Service'.DIRECTORY_SEPARATOR.
                        str_replace('_', DIRECTORY_SEPARATOR, $class).'.php';

        include_once $file;

        return new $class($containerOptions);
    }
protected function containerFactory($container, array $containerOptions = [])
    {
        $container = ucfirst(strtolower($container));
        $class     = __CLASS__.'_Container_'.$container;
        $file      = DOOZR_DOCUMENT_ROOT.'Service'.DIRECTORY_SEPARATOR.
                        str_replace('_', DIRECTORY_SEPARATOR, $class).'.php';

        include_once $file;

        return new $class($containerOptions);
    }
protected function containerFactory ( $ container , array $ containerOptions = [ ] ) { $ container = ucfirst ( strtolower ( $ container ) ) ; $ class = __CLASS__ . '_Container_' . $ container ; $ file = DOOZR_DOCUMENT_ROOT . 'Service' . DIRECTORY_SEPARATOR . str_replace ( '_' , DIRECTORY_SEPARATOR , $ class ) . '.php' ; include_once $ file ; return new $ class ( $ containerOptions ) ; }
Factory for container.

@param string $container        The container to create
@param array  $containerOptions The configuration/options for the container

@author Benjamin Carl <opensource@clickalicious.de>

@return Doozr_Cache_Service_Container_Interface Instance of the container

@throws Doozr_Cache_Service_Exception
Factory for container .