- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 27
Quickstart PHP (For Hyperf Users)
        谷溪 edited this page Mar 28, 2020 
        ·
        2 revisions
      
    <?php
declare(strict_types=1);
namespace App\Controller;
use Reasno\GoTask\GoTask;
class IndexController extends AbstractController
{
    /**
     * @return array
     */
    public function index(GoTask $task)
    {
        return $task->call('App.Hi', ['Swoole is Awesome,', 'So is Go!']);
    }
}Full Working Demo: https://github.com/Reasno/gotask-benchmark/blob/master/app/Controller/IndexController.php