Skip to content

basilicom/rpc-gateway-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RPC Gateway

Developer info: basilicom

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-symfony": "dev-master"' to your composer '"require": {}'

API Reference

  • n/a

Tests

  • none

Contributors

License

  • BSD-3-Clause

Pimcore Controller Example

<?php

namespace AppBundle\Controller;

use Symfony\Component\HttpFoundation\Request;

class RpcController extends AbstractController
{

    public function defaultAction(Request $request)
    {
        $gateway = new \RpcGateway\Gateway($request);
        $gateway->setServiceClassNamespace('\AppBundle\Rpc\\');
        return $gateway->dispatch();
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages