Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ To enable redis session in your shopware 5, just follow this easy steps.

1. Create/update your engine/Shopware/Components/DependencyInjection/services_local.xml with `<service id="session_factory" class="b3nl\SWRedis\DI\Bridge\Session" />`
2. Overwrite the the session savehandler in your shopware config: `'session' => ['save_handler' => 'redis']`
3. And define a redis config with the key `sessionredis` if you like. Please use the config for a [predis/predis](https://github.com/nrk/predis) client.
3. You also might need to set the `save_path` of your session like this: `'session' => ['save_path' => 'tcp://localhost:6379?weight=1']`
4. And define a redis config with the key `sessionredis` if you like. Please use the config for a [predis/predis](https://github.com/nrk/predis) client.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
}
],
"require": {
"php": ">=5.4"
"php": ">=5.4",
"predis/predis": "1.0.*"
},
"require-dev": {
"phpunit/phpunit": "~4.4",
Expand Down