All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add support for PHP 8.4
- Add support for PHP 8.3
- Add support for psr/http-message 2.x
- Upgrade tests to PHPUnit 11
- Drop support for PHP 8.0 and 8.1
- Add
hasmethod toSessionInterface#30 #29 - Add PHP 8.2 to build pipeline
- Update docs
- Require PHP 8.0+
- Make session settings "immutable".
- Move all session settings to the
PhpSessionconstructor. - Provide interfaces for each concern (management and session data).
- Change
SessionInterfaceto handle session data operations only, e.g.get,set. - Rename session method
replacetosetValues. - Rename session method
removetodelete. - Calling the session
savemethod is now optional. - Rename class
Odan\Session\Middleware\SessionMiddlewaretoOdan\Session\Middleware\SessionStartMiddleware.
- Add
SessionManagerInterfaceto handle session operations, such asstart,save,destroy,getName, etc. - Add
defaultparameter to sessiongetmethod.
- Remove session method
setOptionsandgetOptions. Pass all settings intoPhpSessionconstructor instead. - Remove session method
setCookieParamsandgetCookieParams. The cookie parameters must be defined in the settings and will set in the sessionstartmethod. - Remove session
setNamemethod. Use thenamesetting instead. - Remove session
setIdmethod. Use the optionalidsetting instead. - Remove session
countmethod. - Remove
SessionAwareInterfacein favor of dependency injection.