MDL-79697 core: PSR-4 NS can be spread across multiple dirs
commitdb556a4ce851747cb2627c7987509e16e8133404
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 13 Oct 2023 06:50:58 +0000 (13 14:50 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Wed, 15 Nov 2023 13:23:27 +0000 (15 21:23 +0800)
tree5fa6861a267e5d3713dbd586981db35fd033e77b
parent14414fe253f8cb96c4b1a69c45145e9e2df41f33
MDL-79697 core: PSR-4 NS can be spread across multiple dirs

The PSR-4 specification does not preclude a single namespaces from
having multiple sources. This is the case for several PSR standards
including standard packagist packages distributed by PSR:

- PSR-7 - HTTP Message Interfaces: \Psr\Http\Message
- PSR-17 - HTTP Factories: \Psr\Http\Message
- PSR-15 - http-server-handler: \Psr\Http\Server
- PSR-15 - http-server-middleware: \Psr\Http\Server
lib/classes/component.php
lib/tests/component_test.php