张怡冰

Results comments of 张怡冰

其实PHP可以在运行时更改对象的访问级别, 比如把private改为可以访问. 用反射完全可以做到. 参考一下之前我写的一个简单代码: ``` $ref = new \ReflectionObject($action); $properties = $ref->getProperties(); foreach ($properties as $propertie) { $pname = $propertie->getName(); if (substr($pname, strlen($pname) - 7) == 'Service') { $propertie->setAccessible(true); $propertie->setValue($action,...

> 按照配置重新配置开关,解决了 怎么修改配置啊. 我也被锁定了.

我也遇到了这个Bug

我的解决办法是自己控制expandedKeys. 参考代码如下: ` const override = ({ option }) => { if (option.children) { console.log('toggleExpand'); if (expandedKeys.value.includes(option.id)) { expandedKeys.value = expandedKeys.value.filter((item) => item !== option.id); } else { expandedKeys.value.push(option.id); }...

服务的核心测试代码 ` [ [ 'name' => 'CalculatorService', 'service' => CalculatorServiceInterface::class, 'id' => CalculatorServiceInterface::class, // 可选 jsonrpc-http jsonrpc jsonrpc-tcp-length-check 'protocol' => 'jsonrpc-http', 'load_balancer' => 'random', 'registry' => [ 'protocol' => 'consul',...

我的版本是4.6.7 还是不能再Amqp或者Command中注入一个Rpc接口.