Re: [Doxygen-develop] Support for PHP namespaces
Brought to you by:
dimitri
From: Dimitri V. H. <do...@gm...> - 2008-09-16 11:36:30
|
On 16 sep 2008, at 11:28, Karsten Dambekalns wrote: > Hi. > > We are currently looking into using Doxygen for FLOW3/TYPO3v5 after > having switched to using PHP namespaces. Currently we use > phpDocumentor, but it seems to be inactive so support for namespaces > might never come... > > A first try with Doxygen looks promising, but one thing that is a > showstopper is missing support for PHP namespaces. Admittedly it is > not yet fully clear whether PHP will use > namespace X::Y::Z; > or rather > namespace X::Y::Z { ..: } > but this is about everything that remains to be seen. > > I ran Doxygen in our codebase, and it detects "some" namespace, but > e.g. the class hierarchy is completely flat. > > What would be the best way of getting Doxygen nearer to what we need > given that I have never coded C? Who is maintaining the PHP support > of Doxygen? I'm maintaining everything related to Doxygen, so also PHP support ;-) I suggest to file a bug report with severity set to enhancement about this feature request and include some (references to) examples of typically usages (and/or a link to a formal grammar). From what I seen so far, it should basically be enough if doxygen treats "namespace X::Y::Z;", as if "namespace X { namespace Y { namespace Z {" had been written in C#/C++ (where the closing }'s are all at the end of the file. Is this correct? Regards, Dimitri |