@@ -35,17 +35,17 @@ public function registerBundles()
3535``` yml
3636# .. previous content of app/config/config.yml
3737bernard_bernard :
38- driver : file # you can choose redis, predis, pheanstalk , file, doctrine etc.
38+ driver : file # you can choose predis, phpredis , file, doctrine etc.
3939 serializer : simple # this is the default and it is optional. Other values are symfony or jms
4040` ` `
4141
42- Great! You are now ready to use this diddy. Go and read the rest of the documentation on Bernard at bernardphp.com.
42+ Great! You are now ready to use this diddy. Go and read the rest of the documentation on Bernard at [ bernardphp.com](http://bernardphp.com/) .
4343
4444### Running the Consumer
4545
46- What good is a message queue if you don't know how to run the consumer? Luckily this bundle auto registeres the commands
47- with you application. So if you run ` php app/console` you should see `bernar :consume` and `bernard:produce`. Theese
48- works just as the documentation descripes but if you are in doubt just add `--help` when trying to run the command.
46+ What good is a message queue if you don't know how to run the consumer? Luckily this bundle auto registers the commands
47+ with your application. So if you run ` php app/console` you should see `bernard :consume` and `bernard:produce`. These
48+ work just as the documentation describes but if you are in doubt just add `--help` when running the command.
4949
5050It is important to use `--no-debug` when running the consumer for longer periods of time. This is because Symfony by
5151default in debug mode collects a lot of information and logging and if this is omitted you will run into memory problems
@@ -79,9 +79,9 @@ bernard_bernard:
7979 failures: true
8080` ` `
8181
82- This is all good, but what if you can coded you own? Luckily this is taken care of with a tag for the container through
83- a compiler pass. When you define you service just tag you middleware factory service with `bernard.middleware` and give
84- it a `type` attribute or either `consumer` or `producer`.
82+ This is all good, but what if you can code your own? Luckily this is taken care of with a tag for the container through
83+ a compiler pass. When you define your service just tag your middleware factory service with `bernard.middleware` and give
84+ it a `type` attribute with either `consumer` or `producer`.
8585
8686` ` ` yaml
8787my_middleware_factory:
@@ -101,7 +101,7 @@ There are different options that can be set that changes the behaviour for vario
101101# ## Doctrine
102102
103103When using the doctrine driver it can be useful to use a seperate connection when using Bernard. In order to
104- chage it use the `connection` option. This also needs to be set if you default connection is called anything else
104+ change it use the `connection` option. This also needs to be set if you default connection is called anything else
105105than `default`.
106106
107107` ` ` yaml
@@ -129,5 +129,20 @@ bernard_bernard:
129129 directory: %kernel.cache_dir%/bernard
130130` ` `
131131
132- The above example will dump you messages in the cache folder. In most cases you will want to change this to something
132+ The above example will dump your messages in the cache folder. In most cases you will want to change this to something
133133because the cache folder is deleted every time the cache is cleared (obviously).
134+
135+ # ## PhpRedis
136+
137+ PhpRedis depends on a service called `snc_redis.bernard` with a configured `Redis` instance. If you want to use a
138+ different name use the `phpredis_service` option :
139+
140+ ` ` ` yaml
141+ bernard_bernard:
142+ driver: phpredis
143+ options:
144+ phpredis_service: my_redis_service
145+ ` ` `
146+
147+ If you're using the [SncRedisBundle](https://github.com/snc/SncRedisBundle) you have to set logging to false for the
148+ bernhard client to ensure that is is a ``Redis`` instance and not wrapped.
0 commit comments