public function __construct($addrs, $callback) { if (!extension_loaded('libevent')) { throw new LogicException('LibEvent transport requires pecl/libevent extension'); } parent::__construct($addrs, $callback); }