z-engine icon indicating copy to clipboard operation
z-engine copied to clipboard

Add automatic self-registration via Composer

Open lisachenko opened this issue 5 years ago • 2 comments
trafficstars

Autoload can be used for automatic Core initialization, thus simplify usage of this library. Unfortunately, Composer doesn't support automatic preload right now, so only CLI mode can be used for auto-registration right now.

lisachenko avatar Dec 11 '19 16:12 lisachenko

Preloading breaks all the things ( Because composer autoloader calls the Core::init() before preload initialization.

lisachenko avatar Dec 12 '19 12:12 lisachenko

This issue is also affected by the bug https://bugs.php.net/bug.php?id=78918 which prevents code to be preloaded.

lisachenko avatar Dec 23 '19 15:12 lisachenko