Created
June 17, 2014 09:01
-
-
Save markri/f63d7644aa4726043c32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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