/** * 构造函数。 * * @param Bootstrap $ctx * @param array $gets * @param array $posts * @param array $files */ function __construct($ctx, &$gets, &$posts, &$files) { parent::__construct($ctx); $this->gets =& $gets; $this->posts =& $posts; $this->files =& $files; }
/** * 构造函数。 * * @param Bootstrap $scope 指定 Bootstrap 上下文对象。 */ function __construct(&$scope) { parent::__construct($scope); $this->option = new GetOptionKit(); $this->pid = getmypid(); pcntl_signal(SIGCHLD, array($this, "childSignalHandler")); }
/** * 构造函数。 * * @param Bootstrap $ctx 指定上下文对象。 * @param ISwoole $serv 指定 Swoole 服务实例。 * @param int $fd 指定客户端文件描述符。 * @param array $client_info 指定客户端来源信息。 * @param array $cmd_data 指定当前命令数据。 */ function __construct($ctx, $serv, $fd, $client_info, &$cmd_data) { parent::__construct($ctx); $this->serv = $serv; $this->fd = $fd; $this->cmd_data = $cmd_data; $this->client_info = $client_info; }
/** * 构造函数。 * * @param \LeePHP\Bootstrap $ctx */ function __construct($ctx) { parent::__construct($ctx); $this->core_version = swoole_version(); }