Exemplo n.º 1
0
 /**
  * Execute the job.
  *
  * @param Client $api Pre-configured instance of the Client
  */
 public function handle(Client $api)
 {
     // Initialize
     $this->api = $api;
     $this->api->setDefaultToken($this->token);
     $this->api->setPassError(config('vk-requester.pass_error', true));
     // Processing
     if (!$this->requests->isEmpty()) {
         $this->sendToApi();
         $this->fireEvents();
     }
 }