diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-01-30 18:10:58 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-01-30 18:10:58 +0100 |
commit | ba4e46d341a38c12a785fccc771b38621e45bba6 (patch) | |
tree | ff922fe3e62cdc5aaaef1c02105945c038ad47f5 /apps/weather_status/composer/autoload.php | |
parent | 3bfc5a4d959faebd8a76470d2832390598c7981e (diff) | |
download | nextcloud-server-ba4e46d341a38c12a785fccc771b38621e45bba6.tar.gz nextcloud-server-ba4e46d341a38c12a785fccc771b38621e45bba6.zip |
perf(autoloading): Add authoritative autoloader for weather-status
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/weather_status/composer/autoload.php')
-rw-r--r-- | apps/weather_status/composer/autoload.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/apps/weather_status/composer/autoload.php b/apps/weather_status/composer/autoload.php new file mode 100644 index 00000000000..3dd9ff208d7 --- /dev/null +++ b/apps/weather_status/composer/autoload.php @@ -0,0 +1,25 @@ +<?php + +// autoload.php @generated by Composer + +if (PHP_VERSION_ID < 50600) { + if (!headers_sent()) { + header('HTTP/1.1 500 Internal Server Error'); + } + $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; + if (!ini_get('display_errors')) { + if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') { + fwrite(STDERR, $err); + } elseif (!headers_sent()) { + echo $err; + } + } + trigger_error( + $err, + E_USER_ERROR + ); +} + +require_once __DIR__ . '/composer/autoload_real.php'; + +return ComposerAutoloaderInitWeatherStatus::getLoader(); |