docdev
docdev copied to clipboard
Added information
-
About how to use namespaces and composer autoloader in Plugins.
-
Maybe add information about future support. Will namespaces be the standard and will /inc be deprecated?
-
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.