コード例 #1
0
ファイル: Client.php プロジェクト: josedsilva/curry-gearman
 public function __construct($server = '127.0.0.1', $port = 4730, Logger $logger = null)
 {
     parent::__construct();
     $this->server = $server;
     $this->port = $port;
     $this->logger = $logger;
     $this->addServer($this->server, $this->port);
 }
コード例 #2
0
ファイル: Manager.php プロジェクト: zarincheg/celium
 public function __construct($function, Logger $logger = null)
 {
     $this->function = $function;
     if (!$logger) {
         $this->logger = new DefaultLogger('manager');
     } else {
         $this->logger = $logger;
     }
     parent::__construct();
 }