Twitter | Search | |
Brent Dec 20
Finally got preloading to work with ! Still a few caveats though:
Reply Retweet Like
Brent Dec 20
Replying to @brendt_gd
First, there's a sketchy piece of code in carbon, preventing you from preloading the whole Laravel framework. I made an issue for it:
Reply Retweet Like
Brent Dec 20
Replying to @brendt_gd
Second, you'll need PHP 7.4.2 (which is in development still), earlier versions will result in segfaults.
Reply Retweet Like
Brent Dec 20
Replying to @brendt_gd
Third, I'm still debugging an issue with already defined class names in ./vendor/nette/di/src/compatibility.php. Not sure how to fix that , yet.
Reply Retweet Like
Brent Dec 20
Replying to @brendt_gd
But if I comment out both these problematic pieces of code, I'm able to preload the whole Laravel framework 🥳
Reply Retweet Like
Brent Dec 20
Replying to @nikita_ppv
sorry to bother you again, but do you have any clue why the nette code might spit out warnings about previously declared classes? It's this file:
Reply Retweet Like
Nikita Popov
Because the aliases are preloaded, and this code defines the aliases unconditionally (which btw also means that the classes are loaded unconditionally)
Reply Retweet Like More