Server IP : 66.29.132.124 / Your IP : 3.23.102.79 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/vendor/laravel/framework/src/Illuminate/Queue/Console/ |
Upload File : |
<?php namespace Illuminate\Queue\Console; use Illuminate\Console\Command; use Illuminate\Contracts\Cache\Repository as Cache; use Illuminate\Support\InteractsWithTime; class RestartCommand extends Command { use InteractsWithTime; /** * The console command name. * * @var string */ protected $name = 'queue:restart'; /** * The console command description. * * @var string */ protected $description = 'Restart queue worker daemons after their current job'; /** * The cache store implementation. * * @var \Illuminate\Contracts\Cache\Repository */ protected $cache; /** * Create a new queue restart command. * * @param \Illuminate\Contracts\Cache\Repository $cache * @return void */ public function __construct(Cache $cache) { parent::__construct(); $this->cache = $cache; } /** * Execute the console command. * * @return void */ public function handle() { $this->cache->forever('illuminate:queue:restart', $this->currentTime()); $this->info('Broadcasting queue restart signal.'); } }