���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/vendor/wikimedia/shellbox/src/RPC/LocalRpcClient.php
���ѧ٧ѧ�
<?php namespace Shellbox\RPC; use Shellbox\ShellboxError; use Throwable; /** * An implementation of RPCClient that executes the provided commands locally. */ class LocalRpcClient implements RpcClient { public function call( string $routeName, $functionName, array $params = [], array $options = [] ) { $binary = !empty( $options['binary'] ); if ( $binary ) { $params = array_map( static function ( $param ) { return (string)$param; }, $params ); } foreach ( $options['sources' ] ?? [] as $source ) { require_once $source; } // We don't need to require $options['classes'] sources - local client // is run in the same environment as the calling code, so classes // be autoloaded. try { $result = call_user_func_array( $functionName, $params ); } catch ( Throwable $e ) { throw new ShellboxError( $e->getMessage(), $e->getCode(), $e ); } if ( $binary ) { $result = (string)$result; } return $result; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.21 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�