PluginProbe
Packeta / 1.6.1
Packeta v1.6.1
2.3.2 2.3.1 trunk 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.3.0 1.3.1 1.3.2 1.4 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 All 56 releases
packeta / deps / scoper-autoload.php

scoper-autoload.php in Packeta 1.6.1, at deps/scoper-autoload.php

50 lines 2.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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('Normalizer', 'Packetery\Normalizer');
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('getallheaders')) { function getallheaders() { return \Packetery\getallheaders(...func_get_args()); } }
36 if (!function_exists('idn_to_ascii')) { function idn_to_ascii() { return \Packetery\idn_to_ascii(...func_get_args()); } }
37 if (!function_exists('idn_to_utf8')) { function idn_to_utf8() { return \Packetery\idn_to_utf8(...func_get_args()); } }
38 if (!function_exists('mb_chr')) { function mb_chr() { return \Packetery\mb_chr(...func_get_args()); } }
39 if (!function_exists('mb_ord')) { function mb_ord() { return \Packetery\mb_ord(...func_get_args()); } }
40 if (!function_exists('mb_scrub')) { function mb_scrub() { return \Packetery\mb_scrub(...func_get_args()); } }
41 if (!function_exists('normalizer_is_normalized')) { function normalizer_is_normalized() { return \Packetery\normalizer_is_normalized(...func_get_args()); } }
42 if (!function_exists('normalizer_normalize')) { function normalizer_normalize() { return \Packetery\normalizer_normalize(...func_get_args()); } }
43 if (!function_exists('sapi_windows_vt100_support')) { function sapi_windows_vt100_support() { return \Packetery\sapi_windows_vt100_support(...func_get_args()); } }
44 if (!function_exists('spl_object_id')) { function spl_object_id() { return \Packetery\spl_object_id(...func_get_args()); } }
45 if (!function_exists('stream_isatty')) { function stream_isatty() { return \Packetery\stream_isatty(...func_get_args()); } }
46 if (!function_exists('utf8_decode')) { function utf8_decode() { return \Packetery\utf8_decode(...func_get_args()); } }
47 if (!function_exists('utf8_encode')) { function utf8_encode() { return \Packetery\utf8_encode(...func_get_args()); } }
48
49 return $loader;
50