On 10.04.2023 14:17, G. P. B. wrote:
Hello Internals,
Dan and I would like to propose a new core autoloading mechanism
I 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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php