Skip to content

Conversation

DonutsNL
Copy link

@DonutsNL DonutsNL commented Jul 6, 2023

  1. About how to use namespaces and composer autoloader in Plugins.

  2. Maybe add information about future support. Will namespaces be the standard and will /inc be deprecated?

  3. I also think it is wise to add the instruction somewhere to "NOT" use existing GLPI classnames inside the plugin namespace or renaming them using: use GlpiPlugins\Namespace\ExistingObjectName as SomethingElse;. I noticed doing so with extends on other existing GLPI objects like CommonDropdown will make the resulting functionality pretty flaky. It should be easy to come up with unique class names.

DonutsNL added 7 commits July 6, 2023 12:07
Added some additional information on using the Composer autoloader and /src/ in the Directory structure. Please review my interpretation maybe add something on LTS, will old /inc/ be deprecated in the future?
Created an actual RST table :S and added code examples
Should not be in the pull request.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to add .vscode to .gitignore obviously xD sorry.

@cedric-anne cedric-anne requested a review from cconard96 July 6, 2023 19:14
Copy link
Contributor

@cconard96 cconard96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a review of the wording/grammar of the new text.

Also, some of this seems like duplicated information from the other recent PR regarding this change:
#139

@cedric-anne cedric-anne requested a review from cconard96 June 2, 2025 13:03
Comment on lines +9 to +11
PRE GLPI 10
++++++++++

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This entire paragraph must be removed if it's indeed related to versions prior to GLPI v10.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change currently only adds the label. You want me to drop the paragraph or just accept this change from someone else?

But considering my recent rewrite i think it needs a rewrite for glpi11 as well 😅

In that regard, What are the (structuring) rules regarding documenting for various versions. With GLPI11 alot is changing in regards to the folder structure (dropping marketplace, no more front (if done right), etc)

Should the convention documentation only describe the latest (x) versions, only the supported versions, all versions?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Developers documentation currently only targets GLPI v11.

Changes made in v11 can be marked with a .. versionadded:: 11.0.0 or .. versionchanged:: 11.0.0 and v10 info can be kept - if you want.
But everything older should just be removed (versions are no longer supported).

Copy link
Contributor

@cconard96 cconard96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My previous comments are still relevant.

DonutsNL and others added 2 commits August 21, 2025 18:40
Co-authored-by: Curtis Conard <[email protected]>
Co-authored-by: Curtis Conard <[email protected]>
Copy link
Collaborator

@trasher trasher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants