public function __construct($port, $host, $basePath) { $server = new Server($port, $host); $server->start(); $this->services['server'] = $server; $this->basePath = $basePath; }