| @@ -1,20 +1,22 @@ | ||
| 1 | 1 | <?php |
| 2 | -// autoload.php @generated by Strauss | |
| 3 | 2 | |
| 4 | -if ( file_exists( __DIR__ . '/autoload-classmap.php' ) ) { | |
| 5 | - $class_map = include __DIR__ . '/autoload-classmap.php'; | |
| 6 | - if ( is_array( $class_map ) ) { | |
| 7 | - spl_autoload_register( | |
| 8 | - function ( $classname ) use ( $class_map ) { | |
| 9 | - if ( isset( $class_map[ $classname ] ) && file_exists( $class_map[ $classname ] ) ) { | |
| 10 | - require_once $class_map[ $classname ]; | |
| 11 | - } | |
| 12 | - } | |
| 13 | - ); | |
| 3 | +// autoload.php @generated by Composer | |
| 4 | + | |
| 5 | +if (PHP_VERSION_ID < 50600) { | |
| 6 | + if (!headers_sent()) { | |
| 7 | + header('HTTP/1.1 500 Internal Server Error'); | |
| 14 | 8 | } |
| 15 | - unset( $class_map, $strauss_src ); | |
| 9 | + $err = '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; | |
| 10 | + if (!ini_get('display_errors')) { | |
| 11 | + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { | |
| 12 | + fwrite(STDERR, $err); | |
| 13 | + } elseif (!headers_sent()) { | |
| 14 | + echo $err; | |
| 15 | + } | |
| 16 | + } | |
| 17 | + throw new RuntimeException($err); | |
| 16 | 18 | } |
| 17 | 19 | |
| 18 | -if ( file_exists( __DIR__ . '/autoload-files.php' ) ) { | |
| 19 | - require_once __DIR__ . '/autoload-files.php'; | |
| 20 | -} | |
| 20 | +require_once __DIR__ . '/composer/autoload_real.php'; | |
| 21 | + | |
| 22 | +return ComposerAutoloaderInit40089d4ce391b695e3bf2d25f506d398::getLoader(); | |