tao-test/app/vendor/ocramius/proxy-manager/examples/remote-proxy/remote-proxy-server.php

27 lines
426 B
PHP
Raw Normal View History

2022-08-29 20:14:13 +02:00
<?php
declare(strict_types=1);
namespace ProxyManager\Example\RemoteProxyServer;
use Laminas\XmlRpc\Server;
require_once __DIR__ . '/../../vendor/autoload.php';
class Foo
{
public function bar() : string
{
return 'bar remote!';
}
}
(static function () : void {
$server = new Server();
$server->setClass(new Foo(), 'Foo');
$server->setReturnResponse(false);
$server->handle();
})();