composer
3 years ago
dompdf
3 years ago
league
3 years ago
masterminds
3 years ago
maxmind-db
3 years ago
phenx
3 years ago
psr
3 years ago
sabberworm
3 years ago
autoload.php
3 years ago
scoper-autoload.php
3 years ago
scoper-autoload.php
45 lines
| 1 | <?php |
| 2 | |
| 3 | // scoper-autoload.php @generated by PhpScoper |
| 4 | |
| 5 | // Backup the autoloaded Composer files |
| 6 | if (isset($GLOBALS['__composer_autoload_files'])) { |
| 7 | $existingComposerAutoloadFiles = $GLOBALS['__composer_autoload_files']; |
| 8 | } |
| 9 | |
| 10 | $loader = require_once __DIR__.'/autoload.php'; |
| 11 | // Ensure InstalledVersions is available |
| 12 | $installedVersionsPath = __DIR__.'/composer/InstalledVersions.php'; |
| 13 | if (file_exists($installedVersionsPath)) require_once $installedVersionsPath; |
| 14 | |
| 15 | // Restore the backup |
| 16 | if (isset($existingComposerAutoloadFiles)) { |
| 17 | $GLOBALS['__composer_autoload_files'] = $existingComposerAutoloadFiles; |
| 18 | } else { |
| 19 | unset($GLOBALS['__composer_autoload_files']); |
| 20 | } |
| 21 | |
| 22 | // Class aliases. For more information see: |
| 23 | // https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md#class-aliases |
| 24 | if (!function_exists('humbug_phpscoper_expose_class')) { |
| 25 | function humbug_phpscoper_expose_class(string $exposed, string $prefixed): void { |
| 26 | if (!class_exists($exposed, false) && !interface_exists($exposed, false) && !trait_exists($exposed, false)) { |
| 27 | spl_autoload_call($prefixed); |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | humbug_phpscoper_expose_class('IAWP\Utils\Security', 'IAWP_SCOPED\IAWP\Utils\Security'); |
| 32 | |
| 33 | // Function aliases. For more information see: |
| 34 | // https://github.com/humbug/php-scoper/blob/master/docs/further-reading.md#function-aliases |
| 35 | if (!function_exists('iawp')) { function iawp() { return \IAWP_SCOPED\iawp(...func_get_args()); } } |
| 36 | if (!function_exists('iawp_default_args')) { function iawp_default_args() { return \IAWP_SCOPED\iawp_default_args(...func_get_args()); } } |
| 37 | if (!function_exists('iawp_is_free')) { function iawp_is_free() { return \IAWP_SCOPED\iawp_is_free(...func_get_args()); } } |
| 38 | if (!function_exists('iawp_is_pro')) { function iawp_is_pro() { return \IAWP_SCOPED\iawp_is_pro(...func_get_args()); } } |
| 39 | if (!function_exists('iawp_log')) { function iawp_log() { return \IAWP_SCOPED\iawp_log(...func_get_args()); } } |
| 40 | if (!function_exists('iawp_path_to')) { function iawp_path_to() { return \IAWP_SCOPED\iawp_path_to(...func_get_args()); } } |
| 41 | if (!function_exists('iawp_url_to')) { function iawp_url_to() { return \IAWP_SCOPED\iawp_url_to(...func_get_args()); } } |
| 42 | if (!function_exists('iawp_using_woocommerce')) { function iawp_using_woocommerce() { return \IAWP_SCOPED\iawp_using_woocommerce(...func_get_args()); } } |
| 43 | |
| 44 | return $loader; |
| 45 |