Пример #1
0
function do_deploy($count = 0)
{
    Vertx::deployVerticle('child.php', function ($deployId) {
        Vertx::logger()->info('Deployed ' . $count);
        do_undeploy($deployId, $count);
    });
}
Пример #2
0
 /**
  * Tests failing a verticle deploy.
  */
 public function testDeployFail()
 {
     Vertx::deployVerticle('asdlkjsdalf', NULL, 1, function ($id, $error) {
         $this->assertNull($id);
         $this->assertNotNull($error);
         $this->complete();
     });
 }
Пример #3
0
<?php

$config = array('name' => 'tim', 'age' => 823823);
Vertx::deployVerticle('deploy/child.php', $config);