PHPDaemon\Examples\ExampleWithMySQL::onReady PHP Method

onReady() public method

Called when the worker is ready to go.
public onReady ( ) : void
return void
    public function onReady()
    {
        $this->sql = \PHPDaemon\Clients\MySQL\Pool::getInstance();
    }
ExampleWithMySQL