SHARE
TWEET

Untitled

a guest Nov 11th, 2015 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. namespace App\Jobs;
  4.  
  5. use App\Jobs\Job;
  6. use Illuminate\Queue\SerializesModels;
  7. use Illuminate\Queue\InteractsWithQueue;
  8. use Illuminate\Contracts\Bus\SelfHandling;
  9. use Illuminate\Contracts\Queue\ShouldQueue;
  10.  
  11. class Parse extends Job implements SelfHandling, ShouldQueue
  12. {
  13.     use InteractsWithQueue, SerializesModels;
  14.    
  15.     protected $url;
  16.  
  17.     /**
  18.      * Create a new job instance.
  19.      *
  20.      * @return void
  21.      */
  22.     public function __construct($url)
  23.     {
  24.         $this->url = $url;
  25.     }
  26.  
  27.     /**
  28.      * Execute the job.
  29.      *
  30.      * @return void
  31.      */
  32.     public function handle()
  33.     {
  34.         $url = $this->url;
  35.        
  36.         // Parse page.
  37.     }
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top