Aufsplitten der Commands.
parent
42b58a3095
commit
2d88f463e4
|
@ -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();
|
||||||
|
}
|
||||||
|
}
|
|
@ -6,14 +6,14 @@ use App\Scraper\Edomizil;
|
||||||
use App\Models\Property;
|
use App\Models\Property;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
|
|
||||||
class scraperCreateJobs extends Command
|
class scraperCreatePropertyDataJobs extends Command
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* The name and signature of the console command.
|
* The name and signature of the console command.
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $signature = 'scraper:jobs';
|
protected $signature = 'scraper:jobs-propertydata';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The console command description.
|
* The console command description.
|
||||||
|
@ -27,7 +27,6 @@ class scraperCreateJobs extends Command
|
||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
Edomizil::dispatchPropertyJobs();
|
|
||||||
Edomizil::dispatchPropertyDataJobs();
|
Edomizil::dispatchPropertyDataJobs();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue