Developer info: basilicom
- 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\\')
- just add '"basilicom/rpc-gateway-symfony": "dev-master"' to your composer '"require": {}'
- n/a
- none
- Conrad Guelzow [email protected]
- Marco Senkpiel [email protected]
- BSD-3-Clause
<?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();
}
}