diff options
Diffstat (limited to 'plugins/jobs/oooold/tests/consumer.php')
-rw-r--r-- | plugins/jobs/oooold/tests/consumer.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/jobs/oooold/tests/consumer.php b/plugins/jobs/oooold/tests/consumer.php new file mode 100644 index 00000000..ed56edff --- /dev/null +++ b/plugins/jobs/oooold/tests/consumer.php @@ -0,0 +1,22 @@ +<?php + +/** + * Spiral Framework. + * + * @license MIT + * @author Anton Titov (Wolfy-J) + */ + +declare(strict_types=1); + +use Spiral\Core\Container; +use Spiral\Goridge; +use Spiral\Jobs; +use Spiral\RoadRunner; + +require 'bootstrap.php'; + +$rr = new RoadRunner\Worker(new Goridge\StreamRelay(STDIN, STDOUT)); + +$consumer = new Jobs\Consumer(new Jobs\Registry\ContainerRegistry(new Container())); +$consumer->serve($rr); |