Skip to content

2.0.0 RC3

Pre-release
Pre-release

Choose a tag to compare

@trowski trowski released this 08 Oct 15:07

Note: This is a pre-release, there might be breaking changes in the final stable version.

  • Added Driver class to collect the various components necessary for session creation. The class has a single method, create() that returns a Session instance.
  • The Storage interface has been reduced to only methods to store session data. Locking/unlocking is now handled by an instance of KeyedMutex given to Driver.
  • SessionMiddleware constructor now requires an instance of Driver instead of Storage.
  • RedisStorage constructor no longer needs an instance of Amp\Redis\Mutex\Mutex or IdGenerator.
  • InMemoryStorage constructor no longer needs an instance of IdGenerator.