Skip to content

Instantly share code, notes, and snippets.

@markri
Created June 17, 2014 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markri/f63d7644aa4726043c32 to your computer and use it in GitHub Desktop.
Save markri/f63d7644aa4726043c32 to your computer and use it in GitHub Desktop.
<?php
require_once __DIR__.'/../app/bootstrap.php.cache';
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
$request = Request::createFromGlobals();
// Socket to talk to server
$context = new ZMQContext();
$requester = new ZMQSocket($context, ZMQ::SOCKET_REQ);
$requester->connect("tcp://localhost:5556");
$requester->send(serialize($request));
$reply = unserialize($requester->recv());
$reply->send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment