hoaproject/Worker

Shared::start | New argument

Pierozi opened this issue · 2 comments

On Hoa\Worker\Backend\Shared::sart function
That will be great to add third argument for custom environment variable by FPM params

I can make PR for this if it's approved, because i have already done for my project...

return $server->send(array(
            'GATEWAY_INTERFACE' => 'FastCGI/1.0',
            'SERVER_PROTOCOL'   => 'HTTP/1.1',
            'REQUEST_METHOD'    => 'GET',
            'REQUEST_URI'       => $workerPath,
            'SCRIPT_FILENAME'   => $workerPath,
            'SCRIPT_NAME'       => DS . dirname($workerPath),
            'CUSTOM_VAR'        => 'foo bar baz'
        ));

Hello :-),

👍 for the PR.

Discussion continues on the attached PR.