protected function registerClassAutoloadExceptions() { spl_autoload_register(function ($class) { throw new \Exception("Class '{$class}' not found."); }); }