You are here

public function XmlrpcController::php in xmlrpc 8

Process an XML-RPC request.

Return value

\Symfony\Component\HttpFoundation\Response A Response object.

1 string reference to 'XmlrpcController::php'
xmlrpc.routing.yml in ./xmlrpc.routing.yml
xmlrpc.routing.yml

File

src/Controller/XmlrpcController.php, line 22

Class

XmlrpcController
Contains controller methods for the XML-RPC module.

Namespace

Drupal\xmlrpc\Controller

Code

public function php() {
  $module_handler = $this
    ->moduleHandler();

  // xmlrpc.server.inc assumes xmlrpc.inc is already included.
  $module_handler
    ->loadInclude(static::MODULE, 'inc');

  // Needed to define xmlrpc_server().
  $module_handler
    ->loadInclude(static::MODULE, 'server.inc');
  return xmlrpc_server($module_handler
    ->invokeAll(static::MODULE));
}