You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2014/03/24 20:44:46 UTC
[jira] [Assigned] (THRIFT-2425) PHP: Server-side support for
Multiplexing Services
[ https://issues.apache.org/jira/browse/THRIFT-2425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer reassigned THRIFT-2425:
----------------------------------
Assignee: Jens Geyer
> PHP: Server-side support for Multiplexing Services
> --------------------------------------------------
>
> Key: THRIFT-2425
> URL: https://issues.apache.org/jira/browse/THRIFT-2425
> Project: Thrift
> Issue Type: Sub-task
> Components: PHP - Library
> Affects Versions: 0.9.1
> Reporter: Aldo Armiento
> Assignee: Jens Geyer
> Priority: Minor
> Labels: multiplexing
> Fix For: 0.9.2
>
> Attachments: patch.diff
>
>
> Attached patch contains implementation of TMultiplexedProcessor for PHP Thrift server that used TProtocolDecorator (the same approach from Java server).
> Example:
> {code:xml}
> $processor = new TMultiplexedProcessor();
> processor->registerProcessor(
> "Calculator",
> new \tutorial\CalculatorProcessor(new CalculatorHandler()));
> processor->registerProcessor(
> "WeatherReport",
> new \tutorial\WeatherReportProcessor(new WeatherReportHandler()));
> $processor->process($protocol, $protocol);
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)