laravel signal aware command:处理工匠命令中的信号 源码
处理工匠命令中的信号 使用此软件包,您可以在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
下载地址
用户评论