1. 首页
  2. 数据库
  3. 其它
  4. laravel signal aware command:处理工匠命令中的信号 源码

laravel signal aware command:处理工匠命令中的信号 源码

上传者: 2021-04-20 12:17:39上传 ZIP文件 7.56KB 热度 5次
处理工匠命令中的信号 使用此软件包,您可以在Laravel应用中轻松处理SIGINT , SIGTERM类的SIGINT 。 这是处理SIGINT信号的快速示例。 use Spatie \ SignalAwareCommand \ SignalAwareCommand class YourCommand extends SignalAwareCommand { protected $ signature = 'your-command' ; public function handle () { $ this -> info ( 'Command started...' ); sleep ( 100 ); } public function onSigint () { // will be
下载地址
用户评论