PHP Class Dusterio\AwsWorker\Controllers\WorkerController

Inheritance: extends LaravelController
Mostra file Open project: dusterio/laravel-aws-worker

Protected Properties

Property Type Description
$awsHeaders array

Public Methods

Method Description
queue ( Illuminate\Http\Request $request, Dusterio\AwsWorker\Wrappers\WorkerInterface $worker, Illuminate\Contracts\Container\Container $laravel ) : Illuminate\Http\Response
schedule ( Illuminate\Contracts\Container\Container $laravel, Illuminate\Contracts\Console\Kernel $kernel, Illuminate\Console\Scheduling\Schedule $schedule ) : array This method is nearly identical to ScheduleRunCommand shipped with Laravel, but since we are not interested in console output we couldn't reuse it

Private Methods

Method Description
hasHeader ( Illuminate\Http\Request $request, $header ) : boolean
response ( array $messages = [], integer $code = 200 ) : Illuminate\Http\Response
validateBody ( Illuminate\Http\Request $request, Illuminate\Contracts\Container\Container $laravel ) : string
validateHeaders ( Illuminate\Http\Request $request )

Method Details

queue() public method

public queue ( Illuminate\Http\Request $request, Dusterio\AwsWorker\Wrappers\WorkerInterface $worker, Illuminate\Contracts\Container\Container $laravel ) : Illuminate\Http\Response
$request Illuminate\Http\Request
$worker Dusterio\AwsWorker\Wrappers\WorkerInterface
$laravel Illuminate\Contracts\Container\Container
return Illuminate\Http\Response

schedule() public method

This method is nearly identical to ScheduleRunCommand shipped with Laravel, but since we are not interested in console output we couldn't reuse it
public schedule ( Illuminate\Contracts\Container\Container $laravel, Illuminate\Contracts\Console\Kernel $kernel, Illuminate\Console\Scheduling\Schedule $schedule ) : array
$laravel Illuminate\Contracts\Container\Container
$kernel Illuminate\Contracts\Console\Kernel
$schedule Illuminate\Console\Scheduling\Schedule
return array

Property Details

$awsHeaders protected_oe property

protected array $awsHeaders
return array