first commit

This commit is contained in:
2024-11-10 21:08:49 +01:00
commit 0d932ce5ee
14455 changed files with 2567501 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
require __DIR__ . '/../src-build/webp-convert.inc';
spl_autoload_register('webpconvert_disable_autoload', true, true);
function webpconvert_disable_autoload($class) {
//echo $class . "\n";
if (strpos($class, 'WebPConvert\\') === 0) {
if (strpos($class, 'WebPConvert\\Tests\\') !== 0) {
throw new \Exception(
'Autoloader was about to autoload a WebPConvert class. ' .
'But that means it was not included in the build! "' . $class . '"');
//require_once WEBPEXPRESS_PLUGIN_DIR . '/lib/classes/' . substr($class, 12) . '.php';
}
if (strpos($class, 'ImageMimeTypeGuesser\\') === 0) {
throw new \Exception(
'Autoloader was about to autoload a ImageMimeTypeGuesser class. ' .
'But that means it was not included in the build! "' . $class . '"');
}
}
}