摘要: hyperf在启动阶段BootApplication会初始化JsonRpc中的TcpServer文件构造函数,而TcpServer文件继承了RpcServer的Server文件。 通过这两个文件的构造函数,将自动注入ContainerInterface、DispatcherInterface、Exc 阅读全文
posted @ 2020-12-22 15:38 cnlihao 阅读(486) 评论(0) 推荐(0) 编辑
摘要: class father { //定义father类 public function getMethod() { //定义方法 $this->method(); } public function method() { //定义方法 echo '<br />father method'; } } c 阅读全文
posted @ 2020-12-22 14:10 cnlihao 阅读(209) 评论(0) 推荐(0) 编辑