private static function makeBackendFromSettings(Settings $settings) { $host = $settings->redisHost->getValue(); $port = $settings->redisPort->getValue(); $timeout = $settings->redisTimeout->getValue(); $password = $settings->redisPassword->getValue(); $database = $settings->redisDatabase->getValue(); $redis = new Queue\Backend\Redis(); $redis->setConfig($host, $port, $timeout, $password); $redis->setDatabase($database); return $redis; }