定制 net_bazzline/component_shutdown 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

net_bazzline/component_shutdown

Composer 安装命令:

composer require net_bazzline/component_shutdown

包简介

php component shutdown

README 文档

README

The build status of the current master branch is tracked by Travis CI:

Build Status

General

This component provides the ShutdownInterface as well as an ShutdownAwareInterface. It comes with two implementations of the ShutdownInterface.

You can use this interface to shutdown classes or processes to prevent you from using kill to stop the process. With the shutdown, you can controll how you class or process should go to a well defined shutdown.

This component was created by splitting up the PHP_Bazzline_Utility repository.

Implementations

Two implementations exists. The FileShutdown and the RuntimeShutdown.

RuntimeShutdown

The RuntimeLock can be used to shutdown an instance during one request. This can be useful if you want to react on runtime environment changes or something similar.

FileShutdown

The FileShutdown can be used to shutdown an running process outside from the current request. If you have to implement longer running requests (runtime above one minute for example), you can easily touch a fitting shutdown file to stop the process in a well defined way.

Future Improvements

History

  • 1.0.3
    • Added ShutdownDependentInterface
  • 1.0.2
    • Added optional constructor $name
  • 1.0.1
    • Moved to LGPLv3
  • 1.0.0
    • Finished ShutdownInterface and ShutdownAwareInterface
    • Added implementation for FileShutdown and RuntimeShutdown
    • Covered implementations with unittests

统计信息

  • 总下载量: 185
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPLv3
  • 更新时间: 2013-06-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固