jbroudou/cronlock
Composer 安装命令:
composer require jbroudou/cronlock
包简介
README 文档
README
A simple ZF2 module that provides locking functionality for cron type console actions.
To install add the following to your project's composer.json
"jbroudou/cronlock": "dev-master"
To enable locking functionality of a console action set the cronLock parameter of the route's default options. e.g.
'my-end-point' => array(
'options' => array(
'route' => 'my-end-point',
'defaults' => array(
'controller' => 'Project\Controller\Cron',
'action' => 'runCron',
'cronLock' => true,
)
)
)
Set the directory where lock files will be created by specifying a cronLockDir config in your project's auto load config. If not set, the module will default to the /tmp directory.
统计信息
- 总下载量: 5.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-10-29