Aufsplitten der Commands.

main
Giò 2024-07-15 16:33:52 +02:00
parent 42b58a3095
commit 2d88f463e4
2 changed files with 33 additions and 3 deletions

View File

@ -0,0 +1,31 @@
<?php
namespace App\Console\Commands;
use App\Scraper\Edomizil;
use Illuminate\Console\Command;
class scraperCreatePropertiesJobs extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'scraper:jobs-properties';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Scrape for properties.';
/**
* Execute the console command.
*/
public function handle()
{
Edomizil::dispatchPropertyJobs();
}
}

View File

@ -6,14 +6,14 @@ use App\Scraper\Edomizil;
use App\Models\Property;
use Illuminate\Console\Command;
class scraperCreateJobs extends Command
class scraperCreatePropertyDataJobs extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'scraper:jobs';
protected $signature = 'scraper:jobs-propertydata';
/**
* The console command description.
@ -27,7 +27,6 @@ class scraperCreateJobs extends Command
*/
public function handle()
{
Edomizil::dispatchPropertyJobs();
Edomizil::dispatchPropertyDataJobs();
}
}