public function run() { sleep(1); echo '-----------------------------------</br>Im worker ' . $this->getThreadId() . "</br>"; if (isset($this->config)) { self::$connection = new PDO(...$this->config); } }
public function run() { if (isset($this->config)) { self::$connection = new PDO(...$this->config); } }