Недавно я преобразовал проект Symfony из 2.6 в 3.4. Я также обновил связанные зависимости. Я получаю ошибку, связанную с Redis, и выкладываю стек здесь:
in RedisCache.php line 28
at Redis->setOption(1, 2)in RedisCache.php line 28
at RedisCache->setRedis(object(Redis))in UpdateUserPostLoad.php line 62
at UpdateUserPos::loadUserScore(object(User), object(EntityManager_9a5be93))in UpdateUserPos.php line 49
at UpdateUserPos->onCoreController(object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher))in WrappedListener.php line 111
at WrappedListener->__invoke(object(FilterControllerEvent), 'kernel.controller', object(ContainerAwareEventDispatcher))in EventDispatcher.php line 212
at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(FilterControllerEvent))in EventDispatcher.php line 44
at EventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent))in TraceableEventDispatcher.php line 143
at TraceableEventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent))in HttpKernel.php line 139
at HttpKernel->handleRaw(object(Request), 2)in HttpKernel.php line 68
at HttpKernel->handle(object(Request), 2, false)in ExceptionListener.php line 55
at ExceptionListener->onKernelException(object(GetResponseForExceptionEvent), 'kernel.exception', object(TraceableEventDispatcher))in WrappedListener.php line 111
at WrappedListener->__invoke(object(GetResponseForExceptionEvent), 'kernel.exception', object(ContainerAwareEventDispatcher))in EventDispatcher.php line 212
at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.exception', object(GetResponseForExceptionEvent))in EventDispatcher.php line 44
at EventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent))in TraceableEventDispatcher.php line 143
at TraceableEventDispatcher->dispatch('kernel.exception', object(GetResponseForExceptionEvent))in HttpKernel.php line 228
at HttpKernel->handleException(object(RedisException), object(Request), 1)in HttpKernel.php line 79
at HttpKernel->handle(object(Request), 1, true)in Kernel.php line 200
at Kernel->handle(object(Request))in app_dev.php line 34
Выкладываю небольшой фрагмент кода
$predis = new \Doctrine\Common\Cache\RedisCache();
$predisClient = new \Predis\Client(\Learn\Bundle\Lib\Globals::getRedisDsn());
$predisClient->select(\Learn\Bundle\Lib\Globals::getRedisDsnObject()->getDatabase());
$predis->setRedis(new \Redis());
Пожалуйста, помогите решить проблему.