PHPDaemon\Examples\ExampleFsRequest::init PHP Méthode

init() public méthode

public init ( )
    public function init()
    {
        $req = $this;
        $this->sleep(1, true);
        \PHPDaemon\FS\FileSystem::readfile('/etc/filesystems', function ($file, $data) use($req) {
            $req->fileData = $data;
            $req->wakeup();
        });
    }
ExampleFsRequest