[ 
https://issues.apache.org/jira/browse/THRIFT-1241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068823#comment-13068823
 ] 

Darius Staisiunas commented on THRIFT-1241:
-------------------------------------------

Changed according to your comments - now to generate php files with namespaces:
thrift --gen php:namespace example.thrift

> php namespace generation
> ------------------------
>
>                 Key: THRIFT-1241
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1241
>             Project: Thrift
>          Issue Type: Improvement
>          Components: PHP - Compiler
>    Affects Versions: 0.7
>         Environment: PHP 5.3
>            Reporter: Darius Staisiunas
>              Labels: patch
>             Fix For: 0.7
>
>         Attachments: php_namespace_0.7.0.patch
>
>
> Patch is based mainly on https://issues.apache.org/jira/browse/THRIFT-777, 
> but some more improvements:
> namespace can be specified with dots '.' like for every other language
> for example:
> namespace php com.onego.thrift
> would generate in php file
> namespace com\onego\thrift
> to generate php files with namespaces use:
> thrift --gen php:namespace53 example.thrift

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to