文件名称:laravel-signal-aware-command:处理工匠命令中的信号
文件大小:8KB
文件格式:ZIP
更新时间:2024-04-24 18:40:55
PHP
处理工匠命令中的信号 使用此软件包,您可以在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
【文件预览】:
laravel-signal-aware-command-master
----src()
--------SignalAwareCommandServiceProvider.php(442B)
--------Signal.php(503B)
--------SignalAwareCommand.php(2KB)
--------Events()
--------Facades()
--------Signals.php(956B)
----LICENSE.md(1KB)
----composer.json(2KB)
----CHANGELOG.md(142B)
----README.md(6KB)