This plugin parse other's plugins configuration and uses flags to find the YAML config.
-c [PATH]: points RR to the configuration location.
This plugin is independent.
<?php
require __DIR__ . '/vendor/autoload.php';
// Create a new Worker from global environment
$worker = \Spiral\RoadRunner\Worker::create();
while ($data = $worker->waitPayload()) {
// Received Payload
var_dump($data);
// Respond Answer
$worker->respond(new \Spiral\RoadRunner\Payload('DONE'));
}- By default,
.rr.yamlused as the configuration, located in the same directory with RR binary.