title: php Symfony2 redis class not found
body: <p>I am integrating redis in my symfony2. I used this tuts: </p>
  
  <p><a href="http://olegpuzanov.com/2015/02/01/using-redis-for-doctrine-caching-in-symfony2/" rel="nofollow">http://olegpuzanov.com/2015/02/01/using-redis-for-doctrine-caching-in-symfony2/</a></p>
  
  <p>ClassNotFoundException in appDevDebugProjectContainer.php line 966: Attempted to load class "Redis" from the global namespace.
  Did you forget a "use" statement?</p>
  
  <p>here are my configuration:</p>
  
  <pre><code>snc_redis:
  # configure predis as client
  clients:
      default:
          type: predis
          alias: default
          dsn: redis://localhost
      doctrine:
          type: predis
          alias: doctrine
          dsn: redis://localhost
  # configure doctrine caching
  doctrine:
      metadata_cache:
          client: doctrine
          entity_manager: Content
          document_manager: default
      result_cache:
          client: doctrine
          entity_manager: [Content]
      query_cache:
          client: doctrine
          entity_manager: Content
  </code></pre>
  
  <p>and my query: </p>
  
  <pre><code>       $query  = $this-&gt;createQueryBuilder('c')
          -&gt;select('c.id, c.title, c.sequence, c.sequence_count, c.category_sequence, c.unique_id, c.priority, c.status, c.created_at,c.kaltura_id')
          -&gt;addSelect('o.slug as owner')
          -&gt;addSelect('cat.slug as category')
          -&gt;addSelect("group_concat(m.name SEPARATOR ',') AS media")
          -&gt;addSelect("group_concat(a.name SEPARATOR ',') AS album")
          -&gt;innerJoin('c.content_owner', 'o')
          -&gt;innerJoin('c.category', 'cat')
          -&gt;leftJoin('c.media', 'm')
          -&gt;leftJoin('c.albums', 'a')
          -&gt;groupBy('c.id')
          -&gt;setResultCacheDriver($predis)
          # set cache lifetime
          -&gt;setResultCacheLifetime($cache_lifetime)
  
          -&gt;getQuery()
          -&gt;getArrayResult();`
  </code></pre>
  
  <p>also i registered the snc bundle in my app kernel.</p>
  
  <p>please help</p>