Re: [RFC] New core autoloading mechanism with support for function autoloading
| From: | Aleksander Machniak | Date: | Mon, 10 Apr 2023 13:23:15 +0000 |
| Subject: | Re: [RFC] New core autoloading mechanism with support for function autoloading | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119858@lists.php.net to get a copy of this message | ||
On 10.04.2023 14:17, G. P. B. wrote:
Hello Internals, Dan and I would like to propose a new core autoloading mechanismI think it would make a lot of sense to have one function for all kind of features, but the user should define which ones. For example: Loader::register(callable $callback, int $type, bool $prepend = false): void; then Loader::register($callback, Loader::TYPE_CLASS | Loader::TYPE_FUNCTION); Or sth like that. My 2c. -- Aleksander Machniak Kolab Groupware Developer [https://kolab.org] Roundcube Webmail Developer [https://roundcube.net] ---------------------------------------------------- PGP: 19359DC1 # Blog: https://kolabian.wordpress.com