__construct() public method

Constructor
public __construct ( array $config = [], boolean $init = true )
$config array Config variables
$init boolean
Beispiel #1
0
 /**
  * Constructor
  * @param array   $config Config variables
  * @param boolean $init
  */
 public function __construct($config = [], $init = true)
 {
     parent::__construct($config, false);
     $this->bound = new \PHPDaemon\Structures\ObjectStorage();
     if (isset($this->config->listen)) {
         $this->bindSockets($this->config->listen->value);
     }
     if ($init) {
         $this->init();
     }
 }