Created
March 10, 2021 06:27
-
-
Save koriym/3c328e188d4f52e61bafdb3197147bbd to your computer and use it in GitHub Desktop.
Loader to find classes that have not been preloaded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// preloadされていないクラスを見つけるローダー | |
$notPreloaded = new ArrayObject(); | |
spl_autoload_register(function (string $class) use ($notPreloaded) { | |
$notPreloaded[] = $class; | |
}, | |
true, | |
true | |
); | |
error_log(print_r($notPreloaded, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment