elektro-potkan/session-version
Composer 安装命令:
composer require elektro-potkan/session-version
包简介
Ensures session data structure is compatible with current app version
README 文档
README
Ensures session data structure (accessed using Nette Framework) is compatible with current app version.
Usage
// $session is an instance of Nette\Http\Session
$session->onStart[] = [new ElektroPotkan\SessionVersion\Checker('MyApp_v4.57.2-rc1'), 'check'];
It is neccessary to register the Checker into Session as early as possible.
If any code tries to manipulate the session before,
the onStart event will be missed and the too-late-registered checker will not be called.
Using Nette DI
services:
- ElektroPotkan\SessionVersion\Checker('MyApp_v4.57.2-rc1')
session.session:
setup:
- '$onStart[]' = [@ElektroPotkan\SessionVersion\Checker, check]
Author
Elektro-potkan git@elektro-potkan.cz
Info
Versioning
This project uses Semantic Versioning 2.0.0 (semver.org).
Branching
This project uses slightly modified Git-Flow Workflow and Branching Model:
- https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow
- https://nvie.com/posts/a-successful-git-branching-model/
License
You may use this program under the terms of either the BSD Zero Clause License or the GNU General Public License (GPL) version 3 or later.
See file LICENSE.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: 0BSD
- 更新时间: 2021-09-29