[ https://issues.apache.org/jira/browse/THRIFT-2425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aldo Armiento updated THRIFT-2425: ---------------------------------- Description: 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} was: Attached patch contains implementation of TMultiplexedProcessor for PHP Thrift server that used TProtocolDecorator (the same approach from Java client). 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} > 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 > 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)