File: D:/HostingSpaces/SBogers10/hours.komma.pro/app/Console/Commands/autoGenerateTotalWorkInProgress.php
<?php
namespace App\Console\Commands;
use App\Komma\Commands\CommandsService;
use App\Komma\Projects\Project;
use Illuminate\Console\Command;
use Carbon\Carbon;
class autoGenerateTotalWorkInProgress extends Command
{
protected $commandsService;
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'auto-generate:totalWorkInProgress';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Auto generate total work in progress and hours left in project budgets every hour';
public function __construct(CommandsService $commandsService)
{
parent::__construct();
$this->commandsService = $commandsService;
}
/**
* Execute the command.
*
* @return void
*/
public function handle()
{
$this->commandsService->autoGenerateTotalWorkInProgressAndHoursLeftInBudget();
}
}