/** * Execute the job. * * @param Client $api Pre-configured instance of the Client */ public function handle(Client $api) { // Initialize $this->api = $api; $this->api->setPassError(config('vk-requester.pass_error', true)); // Processing $this->sendToApi(); $this->fireEvent(); }
/** * 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(); } }