mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 10:08:27 +01:00
Merge IMAP with phpimap
This commit is contained in:
74
htdocs/includes/webklex/php-imap/vendor/autoload.php
vendored
Normal file
74
htdocs/includes/webklex/php-imap/vendor/autoload.php
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php
|
||||
|
||||
// autoload.php @generated by Composer
|
||||
|
||||
/*
|
||||
if (PHP_VERSION_ID < 50600) {
|
||||
echo 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
require_once __DIR__ . '/composer/autoload_real.php';
|
||||
|
||||
return ComposerAutoloaderInit4da13270269c89a28e472e1f7324e6d1::getLoader();
|
||||
*/
|
||||
|
||||
spl_autoload_register(function ($class_name) {
|
||||
// Enable this to detect what we need for require_once
|
||||
//var_dump($class_name);
|
||||
|
||||
$preg_match = preg_match('/^Webklex\\\PHPIMAP\\\/', $class_name);
|
||||
if (1 === $preg_match) {
|
||||
$class_name = preg_replace('/\\\/', '/', $class_name);
|
||||
$class_name = preg_replace('/^Webklex\\/PHPIMAP\\//', '', $class_name);
|
||||
require_once __DIR__ . '/../src/' . $class_name . '.php';
|
||||
}
|
||||
|
||||
$preg_match = preg_match('/^Illuminate\\\Support\\\/', $class_name);
|
||||
if (1 === $preg_match) {
|
||||
$class_name = preg_replace('/\\\/', '/', $class_name);
|
||||
$class_name = preg_replace('/^Illuminate\\/Support\\//', '', $class_name);
|
||||
$listofdir = array(0 => __DIR__ . '/illuminate/macroable',
|
||||
1 => __DIR__ . '/illuminate/collections',
|
||||
2 => __DIR__ . '/illuminate/support',
|
||||
3 => __DIR__ . '/illuminate/contracts'
|
||||
);
|
||||
foreach($listofdir as $dir) {
|
||||
if (file_exists($dir . '/' . $class_name . '.php')) {
|
||||
require_once $dir . '/' . $class_name . '.php';
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$preg_match = preg_match('/^Illuminate\\\Contracts\\\/', $class_name);
|
||||
if (1 === $preg_match) {
|
||||
$class_name = preg_replace('/\\\/', '/', $class_name);
|
||||
$class_name = preg_replace('/^Illuminate\\/Contracts\\//', '', $class_name);
|
||||
$listofdir = array(
|
||||
0 => __DIR__ . '/illuminate/contracts'
|
||||
);
|
||||
foreach($listofdir as $dir) {
|
||||
if (file_exists($dir . '/' . $class_name . '.php')) {
|
||||
require_once $dir . '/' . $class_name . '.php';
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$preg_match = preg_match('/^Carbon\\\/', $class_name);
|
||||
if (1 === $preg_match) {
|
||||
$class_name = preg_replace('/\\\/', '/', $class_name);
|
||||
$class_name = preg_replace('/^Carbon\\//', '', $class_name);
|
||||
$listofdir = array(
|
||||
0 => __DIR__ . '/nesbot/carbon/src/Carbon'
|
||||
);
|
||||
foreach($listofdir as $dir) {
|
||||
if (file_exists($dir . '/' . $class_name . '.php')) {
|
||||
require_once $dir . '/' . $class_name . '.php';
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user