Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Loader to find classes that have not been preloaded
<?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