Re: Re: [RFC] Namespace-scoped declares, again
| From: | Mark Randall | Date: | Tue, 30 Jul 2019 16:27:56 +0000 |
| Subject: | Re: Re: [RFC] Namespace-scoped declares, again | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106349@lists.php.net to get a copy of this message | ||
On 30/07/2019 15:55, Rowan Collins wrote:
Yes, I was thinking of something more like Composer packages, rather than like JS modules: code would mostly work as presently, but with some notion of being "owned" by a particular package. This doesn't mean all the functions of Composer would be integrated, but could provide richer primitives, such as registering an autoload callback or preload list to a particular package, rather than having to perform string matches.A slight tangent: At the point we're talking about composer integrating callbacks, preloading lists etc, isn't it about time that an spl_autoload_list was added that accepted the standard composer classmap [class_id => path] and forewent most autoload callbacks entirely? Mark Randall