2017 © Pedro Peláez
 

lib rpc-gateway

rpc gateway lib

image

basilicom/rpc-gateway

rpc gateway lib

  • Wednesday, August 3, 2016
  • by mixahead
  • Repository
  • 8 Watchers
  • 1 Stars
  • 122 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

RPC Gateway

Developer info: basilicom, (*1)

Synopsis

Code Example / Method of Operation

  • if your service namespace ist not "\App\Rpc\Service", please don't forget to set your custom namespace.
  • For Example, your Service Class is \Website\Rpc\Custom\User.php:
    $rpc = new \RpcGateway\Gateway();
    $rpc->setServiceClassNamespace('\Website\Rpc\Custom\\');

Installation

  • just add '"basilicom/rpc-gateway": "dev-master"' to your composer '"require": {}'

API Reference

  • n/a

Tests

  • none

Contributors

License

  • BSD-3-Clause

Pimcore Controller Example

<?php

    use Pimcore\Config;

    class RpcController extends \Website\Controller\Action
    {

        /**
         * @return void
         */
        public function defaultAction()
        {
            $this->disableViewAutoRender();

            try {

                $gateway = new \RpcGateway\Gateway();
                $gateway->setServiceClassNamespace('\Website\App\Rpc\Service\\');
                $gateway->setRequest($this->getRequest());
                $gateway->setResponse($this->getResponse());
                $gateway->dispatch();

            } catch (\Exception $e) {

                if (Config::getSystemConfig()->get('general')->debug) {
                    var_dump($e);
                    exit;
                } else {
                    echo "NO METHOD";
                    die();
                }
            }
        }
    }

The Versions

03/08 2016

dev-master

9999999-dev http://basilicom.de/

rpc gateway lib

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

rpc

04/03 2016

1.0.1

1.0.1.0 http://basilicom.de/

rpc gateway lib

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

rpc

04/03 2016

1.0.0

1.0.0.0 http://basilicom.de/

rpc gateway lib

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.0

 

rpc