addExclusiveFilter('#/wordpress/#'); // Based on ClassLoader::getIncludes. $loader = new ClassLoader(); call_user_func(function (ClassLoader $loader) { require dirname(__DIR__) . '/vendor/autoload.php'; $loader->register(); // Load files and classes in the order they should be written. // Load wpsqlitedb manually to avoid $loader->loadClass(wpsqlitedb::class); define('FQDB', ''); new PDOEngine(); new PDOSQLiteDriver(); new CreateQuery(); new AlterQuery(); new ObjectArray([]); new WP_SQLite_DB__Main(); }, $loader); $loader->unregister(); foreach ($loader->getFilenames() as $file) { $config->addFile($file); } $config->addFile(dirname(__DIR__) . '/partials/bootstrap.php'); return $config;