Skip to content

Commit

Permalink
r Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Mysenko committed Jun 3, 2016
1 parent 8f783d4 commit f36955d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Controllers/WorkerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@
use Dusterio\AwsWorker\Jobs\AwsJob;
use Illuminate\Contracts\Container\Container;
use Illuminate\Http\Request;
use Illuminate\Queue\Jobs\SqsJob;
use Illuminate\Queue\Worker;
use Illuminate\Support\Facades\App;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Console\Scheduling\Schedule;
use Aws\Sqs\SqsClient;
use Illuminate\Support\Arr;
use Illuminate\Http\Response;

class WorkerController extends LaravelController
Expand All @@ -21,7 +17,7 @@ class WorkerController extends LaravelController
* @var array
*/
protected $awsHeaders = [
//'X-Aws-Sqsd-Queue', 'X-Aws-Sqsd-Msgid', 'X-Aws-Sqsd-Receive-Count'
'X-Aws-Sqsd-Queue', 'X-Aws-Sqsd-Msgid', 'X-Aws-Sqsd-Receive-Count'
];

/**
Expand Down Expand Up @@ -129,7 +125,7 @@ private function validateBody(Request $request, Container $laravel)
$class = (array_key_exists($queueId, $laravel['config']->get('sqs-plain.handlers')))
? $laravel['config']->get('sqs-plain.handlers')[$queueId]
: $laravel['config']->get('sqs-plain.default-handler');

return json_encode([
'job' => $class . '@handle',
'data' => $request->getContent()
Expand Down

0 comments on commit f36955d

Please sign in to comment.