Browse Source

Add redis bundle

Jordi Boggiano 13 years ago
parent
commit
2198ebe7db
5 changed files with 27 additions and 5 deletions
  1. 1 0
      app/AppKernel.php
  2. 2 0
      app/autoload.php
  3. 7 0
      app/config/config.yml
  4. 9 0
      deps
  5. 8 5
      deps.lock

+ 1 - 0
app/AppKernel.php

@@ -20,6 +20,7 @@ class AppKernel extends Kernel
             new Symfony\Bundle\AsseticBundle\AsseticBundle(),
             new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
             new FOS\UserBundle\FOSUserBundle(),
+            new Snc\RedisBundle\SncRedisBundle(),
             new Packagist\WebBundle\PackagistWebBundle(),
             new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
             new Nelmio\SolariumBundle\NelmioSolariumBundle(),

+ 2 - 0
app/autoload.php

@@ -15,6 +15,8 @@ $loader->registerNamespaces(array(
     'Assetic'          => __DIR__.'/../vendor/assetic/src',
     'Metadata'         => __DIR__.'/../vendor/metadata/src',
     'FOS'              => __DIR__.'/../vendor/bundles',
+    'Snc'              => __DIR__.'/../vendor/bundles',
+    'Predis'           => __DIR__.'/../vendor/predis/lib',
     'Composer'         => __DIR__.'/../vendor/composer/src',
     'Packagist'        => __DIR__.'/../src',
     'WhiteOctober\PagerfantaBundle' => __DIR__.'/../vendor/bundles',

+ 7 - 0
app/config/config.yml

@@ -48,6 +48,13 @@ doctrine:
         auto_generate_proxy_classes: %kernel.debug%
         auto_mapping: true
 
+snc_redis:
+    clients:
+        default:
+            type: predis
+            alias: default
+            dsn: redis://localhost
+
 # Swiftmailer Configuration
 swiftmailer:
     transport: %mailer_transport%

+ 9 - 0
deps

@@ -85,3 +85,12 @@
 
 [jsonlint]
     git=https://github.com/Seldaek/jsonlint.git
+
+[SncRedisBundle]
+    git=git://github.com/snc/SncRedisBundle.git
+    target=/bundles/Snc/RedisBundle
+    version=origin/master
+
+[predis]
+    git=git://github.com/nrk/predis.git
+    version=origin/v0.7

+ 8 - 5
deps.lock

@@ -6,15 +6,18 @@ doctrine-dbal 2.1.6
 doctrine 2.1.6
 swiftmailer v4.1.5
 assetic v1.0.2
-twig-extensions 1dfff8e793f50f651c4f74f796c2c68a4aee3147
+twig-extensions 4c831657215e51568fcb31bb9142e827f9a69bd5
 metadata 1.0.0
-composer bfd48b06bd85619a36f660c43dda4fabfe980a67
+composer 470153989284bc41d13a8e279e2b9cb607e96d34
 SensioFrameworkExtraBundle 638f545b7020b9e9d5944a7e3167f60ed848250d
 SensioDistributionBundle 20b66a408084ad8752f98e50f10533f5245310bf
-SensioGeneratorBundle dd37fc4487bc09ac01bdcf89e0ff4ee4484b7fab
+SensioGeneratorBundle b1ccb78c1743f30817b0fce9bb5c6baff6ed7bf8
 AsseticBundle v1.0.1
 FOSUserBundle 1.1.0
 WhiteOctoberPagerfanta c490684def33e992241e7fad33bcbd03d9d18643
-WhiteOctoberPagerfantaBundle 3fad72a0916d12f50b7a56da470175f560991724
+WhiteOctoberPagerfantaBundle 40209ef994fa2f342660d96bf6bea3f88171cd2d
 solarium 2.3.0-RC1
-NelmioSolariumBundle f1f0c436e727e28acd209c5c9e1176a8ae306ea6
+NelmioSolariumBundle 75c1c8481b3e6be50f1509ab8290181c48b1169e
+jsonlint 869e5d011fe1c82501ae0a3b427a686c21fd5baf
+SncRedisBundle 23c1814a179598d62f6c50290472234e8e4faedd
+predis v0.7.2