Skip to content

3.2.0-RC1: Problem with redis provider service #20563

Closed
@Guite

Description

@Guite

I am trying to update the Zikula core to Symfony 3.2.0-RC1. When running composer I receive the following error:

[RuntimeException]                                                                                                                                                                 
  An error occurred when executing the "'cache:clear --no-warmup'" command:                                                                                                          
  PHP Fatal error:  Uncaught Matthias\SymfonyServiceDefinitionValidator\Exception\InvalidServiceDefinitionsException: Service definition validation errors (1):                      
  - cache.default_redis_provider: Class "Redis" does not exist in /.../src/vendor/matthiasnoback/symfony-service-definition-validator/Compiler/ValidateServiceDefinitionsPass.php:44

Stack trace:
  #0 /.../src/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Compiler/Compiler.php(120): Matthias\SymfonyServiceDefinitionValidator\Compiler\ValidateServiceDefinitionsPass->process(Object(Zikula\Bridge\DependencyInjection\ContainerBuilder))
  #1 /.../src/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/ContainerBuilder.php(565): Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object(Zikula\Bridge\DependencyInjection\ContainerBuilder))
  #2 /.../src/lib/Zikula/Bridge/DependencyInjection/ContainerBuilder.php(110): S in /.../src/vendor/matthiasnoback/symfony-service-definition-validator/Compiler/ValidateServiceDefinitionsPass.php on line 44

The appDevDebugProjectContainer.xml file contains the following service definition:

    <service id="cache.default_redis_provider" class="Redis">
      <argument>redis://localhost</argument>
      <factory class="Symfony\Component\Cache\Adapter\RedisAdapter" method="createConnection"/>
    </service>

Is this a problem which must be fixed in our config file? If yes, how to do that (couldn't find anything about it in the cache component docs)?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions