Skip to content

3.0.0 Beta 1

Pre-release
Pre-release

Choose a tag to compare

@trowski trowski released this 30 May 18:56
v3.0.0-beta.1

Initial release compatible with AMPHP v3.

As with other libraries compatible with AMPHP v3, most cases of parameters or returns of Promise<ResolutionType> have been replaced with ResolutionType.

Basic usage of this library remains the same as in v2: Add SessionMiddleware as part of your request handler stack and access the Session object using Request::getAttribute(Session::class). The session storage and some behaviors may be customized using the constructor of SessionMiddleware.

  • Added Session prefix to interfaces:
    • IdGenerator renamed to SessionIdGenerator; implementation DefaultIdGenerator renamed to DefaultSessionIdGenerator
    • Storage renamed to SessionStorage; implementations LocalStorage and RedisStorage renamed to LocalSessionStorage and RedisSessionStorage
  • Driver renamed to SessionFactory