Releases: Comos/qpm
Improve the process status
Improve the process status.
Fix duplicate timeout test in OnForOneKeeper.
Neater APIs and Improved Supervision Features.
It's incompatible with v0.3.x.
Namespaces
The namespace prefix was changed to Comos\Qpm.
All namespaces are capitalized.
The directories are simplified.
It still follows the PSR-4 but more closely.
The changes of directory structures and name of packages:
- qpm\logger (library/qpm/logger) -> Comos\Qpm\Log (src/Log)
- qpm\supervisor (library/qpm/supervisor) -> Comos\Qpm\Supervision (src/Supervision)
- process (library/qpm/process) -> Process (src/Process)
- pidfile (library/qpm/pidfile) -> Pid (src/Pid)
Process
Removed MainProcess class.
Process::fork() is a static method now.
In old version, forking looks like follows:
Process::current()->fork($runnableInstance);
//or
Process::current()->forkByCallable($callback);
In current version, forking looks like this:
Process::fork($runnableInstance);
//or
Process::fork($callback);
# Supervision
Added "timeout" and "onTimeout" options to OneForOne mode in Supervisor.
Added "termTimeout" option to all modes of Supervisor.
Neater APIs and Improved Supervision Features.
It's incompatible with v0.3.x.
Namespaces
The namespace prefix was changed to Comos\Qpm.
All namespaces are capitalized.
The directories are simplified.
It still follows the PSR-4 but more closely.
The changes of directory structures and name of packages:
- qpm\logger (library/qpm/logger) -> Comos\Qpm\Log (src/Log)
- qpm\supervisor (library/qpm/supervisor) -> Comos\Qpm\Supervision (src/Supervision)
- process (library/qpm/process) -> Process (src/Process)
- pidfile (library/qpm/pidfile) -> Pid (src/Pid)
Process
Removed MainProcess class.
Process::fork() is a static method now.
In old version, forking looks like follows:
Process::current()->fork($runnableInstance);
//or
Process::current()->forkByCallable($callback);
In current version, forking looks like this:
Process::fork($runnableInstance);
//or
Process::fork($callback);
# Supervision
Added "timeout" and "onTimeout" options to OneForOne mode in Supervisor.
Task factory mode of supervisor supports timeout
0.3.1 added timeout option for TaskFactoryMode
不再使用 require_once 加载类
在这个版本,全面转向使用 autoload。
由于项目依赖 Psr\Log, 首选推荐使用Composer安装并使用其自带的autoload机制。
修复了若干Bug。
To support composer
支持 Composer
增加了composer.json
改变Tag命名形式