改名
This commit is contained in:
@@ -79,12 +79,12 @@ class Node
|
|||||||
*/
|
*/
|
||||||
public function unpack(string $data): mixed
|
public function unpack(string $data): mixed
|
||||||
{
|
{
|
||||||
// if ($this->_dataType == RpcProducer::PROTOCOL_JSON) {
|
if ($this->_dataType == 'json') {
|
||||||
// return json_decode($data, true);
|
return json_decode($data, true);
|
||||||
// }
|
}
|
||||||
// if ($this->_dataType == RpcProducer::PROTOCOL_SERIALIZE) {
|
if ($this->_dataType == 'serializes') {
|
||||||
// return unserialize($data);
|
return unserialize($data);
|
||||||
// }
|
}
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -93,7 +93,6 @@ class Node
|
|||||||
* @param $handler
|
* @param $handler
|
||||||
* @param $path
|
* @param $path
|
||||||
* @return Node
|
* @return Node
|
||||||
* @throws NotFindClassException
|
|
||||||
* @throws ReflectionException
|
* @throws ReflectionException
|
||||||
*/
|
*/
|
||||||
public function setHandler($handler, $path): static
|
public function setHandler($handler, $path): static
|
||||||
|
|||||||
Reference in New Issue
Block a user