Example #1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function handle()
 {
     $name = $this->argument('name');
     $format = $this->argument('format');
     $url = $this->argument('url');
     $repository = Repository::firstOrCreate(['name' => $name, 'format' => $format, 'url' => $url]);
     $this->dispatch(new ApacheCrawlerJob($repository));
     // $job = new ApacheCrawlerJob($repository);
     // $job->handle(new \Goutte\Client);
     // dd($job);
     // $loader = Factory::make($format, $locale);
     // $output = $loader->read($path);
     // dd($output);
 }