Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Latest commit

 

History

History
122 lines (89 loc) · 3.58 KB

UPDATE.md

File metadata and controls

122 lines (89 loc) · 3.58 KB

Update notes

2.0.x-dev

This version is a development branch, focused on merging PRs that have been ignored by upstream so far. The merged PRs are:

  • snc/SncRedisBundle#165
    • Fixes multiple connections with same alias overwriting other connections' parameters
    • Required to have any more than a single client with replication (because an alias of 'master' is required for replicated clients)
  • snc/SncRedisBundle#172
    • Adds support for Predis 1.0.x
  • snc/SncRedisBundle#186
    • Fix for snc/SncRedisBundle#185, which otherwise causes the database number to be ignored when using multiple persistent connections to the same host
  • snc/SncRedisBundle#187
    • Upgrades PHPUnit to stable
    • Inclues PHPUnit in the composer autoloader for ease of development
  • vend:feature-lower-loglevel
    • Not opened as a PR, because it would require rebasing
    • Makes usage of the logger compatible with PSR3

Older notes

1.0.11 and 1.1.6

The monolog handler was renamed from monolog.handler.redis to snc_redis.monolog.handler, you have to update your configuration.

Before:

monolog:
    handlers:
        main:
            type: service
            id: monolog.handler.redis
            level: debug

After:

monolog:
    handlers:
        main:
            type: service
            id: snc_redis.monolog.handler
            level: debug

1.1.0

The configuration syntax has been simplified. The connections setting was merged into the clients setting.

Before:

snc_redis:
    connections:
        default:
            alias: default
            host: localhost
            port: 6379
            database: 0
    clients:
        default:
            alias: default
            connection: default

After:

snc_redis:
    clients:
        default:
            type: predis
            alias: default
            dsn: redis://localhost

The service names have been simplified, too. The above configuration will register the service snc_redis.default. The old service names like snc_redis.default_client are still available as an alias.

If you are using the Monolog or SwiftMailer features, then you have to update your configuration by renaming the connection setting to client.

2012-02-18

The master branch is now in sync with the symfony master branch. Please use the 2.0 branch if you are working with Symfony 2.0.

2012-02-17

The RedisSessionStorage class was refactored to reflect the changes in the symfony master branch. The data is not saved in a HASH anymore so keep in mind that your old sessions get lost.

2011-09-23

If you want to use any of the doctrine caches, you now have to configure the entity_manager and/or document_manager parameters. Previously the bundle registered the caches for the default managers.

2011-07-01

The RedisBundle is now vendor prefixed. Please follow the following steps to update your Symfony2 project.

Update your kernel class

Replace new Snc\RedisBundle\RedisBundle() with new Snc\RedisBundle\SncRedisBundle().

Update your config files

Replace redis: with snc_redis: in all of you .yml config files.

Update your code

All services are now prefixed by snc_redis. instead of redis..