/** * Server constructor. * * @param string $configFile */ public function __construct($configFile) { $this->setAsGlobal(); $this->setConfigFileAndCheck($configFile); $this->config = ConfigFactory::getServer(); $this->transport = Transport::factory($this->config->getTransport()); $this->protocol = new Protocol(); set_exception_handler(array($this, "exceptionHandler")); }