1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-09 22:28:26 +01:00
parallel/test/Worker/NonAutoloadableResultTask.php

16 lines
324 B
PHP
Raw Normal View History

<?php
namespace Amp\Parallel\Test\Worker;
use Amp\Parallel\Worker\Environment;
use Amp\Parallel\Worker\Task;
class NonAutoloadableResultTask implements Task
{
public function run(Environment $environment)
{
require __DIR__ . "/non-autoloadable-class.php";
return new NonAutoloadableClass;
}
}