rlang  Thu, 14 Feb 2019 07:36:14 +0000

Modified page: https://wiki.horde.org/Project/NoMorePear
New Revision:  4
Change log:  classmap for misc libraries.

@@ -87,8 +87,21 @@

git-tools binary detects the composer autoloader entrypoint vendor/autoload.php and require_once it. the composer autoloader is configured to provide a psr-4 autoloader for the \\Horde\\GitTools namespace to ./lib

+++++ PSR-0 and packages
+
+Most horde library packages are simple to map to the psr-0 autoloader.
+Package Horde_Foo would have all its classes in lib/Horde/Foo.
+
+Some packages though have class names you would not expect from the package name
+Horde_Core has Horde_ErrorHandler & friends
+Horde_Form has multiple classes in one file
+Horde_Util has Horde_String
+
+These either need to be scanned for additional mappings or need "classmap" style autoload hints.
+
+We also need to think about db migrations and unit tests.

 ++ Resources

https://getcomposer.org/doc/articles/custom-installers.md composer notes on custom installers and plugins

--
commits mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]

Reply via email to