rlang  Fri, 23 Jul 2021 18:53:13 +0000

Modified page: https://wiki.horde.org/Doc/Dev/HordeYmlFormat
New Revision:  6
Change log:  Better description of autoload directive

@@ -117,9 +117,34 @@
 autoload:
   classmap: ['lib/']
 </code>

-The default if absent would be equivalent to psr-0: "Horde_Foo": /Lib
+The default if absent would be autosensing.
+
+If the directory has a /lib/ dir, it will derive a PSR-0 rule from the package name. +If the directory has a /src/ dir, it will derive a PSR-4 rule from the package name.
+
+If an autoload-dev section is present in the .horde.yml file, it will work exactly like the autoload section.
+
+If a test dir is present, a PSR-4 rule will be generated from the package name, appending "\Test\" to the namespace
+
+<code>
+    "autoload": {
+        "psr-0": {
+            "Horde_Http": "lib/"
+        },
+        "psr-4": {
+            "Horde\\Http\\": "src/"
+        }
+    },
+    "autoload-dev": {
+        "psr-4": {
+            "Horde\\Http\\Test\\": "test/"
+        }
+    }
+</code>
+
+

 +++ Composer native dependency definitions

Example: https://github.com/maintaina-com/Dav/commit/71dd9714a8d49c28b5cfe1b0bcd089eb6fa93226
@@ -146,5 +171,6 @@

 <code>
 nocommands:
   - 'bin/horde-bootstrap'
+  - 'bin/foobar'
 </code>

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

Reply via email to