-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated documentation - package tag or no package tag ? #590
Comments
FYI: made a adjustment to the above text regarding the |
I've always found the naming of the That being said, as we already have the existing documentation use the I fully agree with your approach of doing so that you've described above in the checklist items. |
@schlessera In that case these questions also need to be addressed:
|
Yes, makes sense. An alternative would be something like
I'd only go with
Yes, looks ok to me. These all seem to be "internal helpers" which are not meant to be directly used in consuming code. |
Currently most classes have a
@package
tag and a number of them have a@subpackage
tag.These are not always applied, nor always applied consistently and the use of them impacts the generated documentation.
Old ApiGen generated docs, which lists the packages, classes, interfaces and exceptions in the menu:
Similarly, the phpDocumentor docs as will be generated for Requests 2.0.0 and later, which lists the namespaces and packages in the menu:
In the phpDocumentor, a stray
Application
package can be seen which is caused by a couple of files missing the@package
tags.Question:
Do we want to continue to use the
@package
tags ? or do we want to remove them in favour of the namespacing grouping related items ?If we want to continue to use the tags...
... they should IMO be reviewed and made consistent.
In other words:
@package
tags need to be resolved.@package
(and@subpackage
) tags need to be reviewed.@package
tags over the use of@subpackage
as per PSR19.HookManager
interface and theHooks
class be given an@package Requests\Events
?@package Requests\Exceptions
, with the HTTP ones getting@package Requests\Exceptions\Http
?@package Requests\Utilities
tagged correctly ?If we are going to remove the tags....
Should the place of certain classes in the namespace hierarchy be changed to more closely match the previous package overview ?
I.e. move the
Cookies
class into theCookies
namespace and subdirectory, move theProxy
class into theProxy
namespace and subdirectory, move classes with the@subpackage Utilities
into theUtilities
namespace and subdirectory ?@schlessera Do you have an opinion on this ?
The text was updated successfully, but these errors were encountered: