php-session icon indicating copy to clipboard operation
php-session copied to clipboard

Flash and segmentation features added

Open rotexdegba opened this issue 1 year ago • 1 comments
trafficstars

  • Moved exception methods into the new trait \Josantonius\Session\ExceptionThrowingMethodsTrait
  • Added a new Exception (\Josantonius\Session\Exceptions\EmptySegmentNameException) used in the new Session Segment class (\Josantonius\Session\FlashableSessionSegment)
  • Added a new Session Segment Class (\Josantonius\Session\FlashableSessionSegment) that stores data in a sub-array inside $_SESSION & provides data flashing functionality
  • Added a new Interface (\Josantonius\Session\SessionInterface)
  • Josantonius\Session\Session changes:
    • Now implements \Josantonius\Session\SessionInterface
    • start method now sets the session name before starting the session if the name option is specified
    • Exception throwing method have been moved to \Josantonius\Session\ExceptionThrowingMethodsTrait
    • Uses \Josantonius\Session\ExceptionThrowingMethodsTrait to make exception throwing methods available
  • Added tests to test all features in \Josantonius\Session\FlashableSessionSegment
  • Updated README.md with instructions on how to use \Josantonius\Session\FlashableSessionSegment

rotexdegba avatar Oct 26 '24 05:10 rotexdegba