summaryrefslogtreecommitdiffstats
path: root/apps/lookup_server_connector/composer
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-03-30 15:40:23 +0200
committerCôme Chilliet <come.chilliet@nextcloud.com>2022-03-30 15:40:23 +0200
commitd84e87eab952295940cd4bccc4c88082a2afa87a (patch)
tree822cfb834cc88dd3ab4f3a2258e27f8befecb412 /apps/lookup_server_connector/composer
parentcf4c77e064fd52d891bc842d78431cceb2f34952 (diff)
downloadnextcloud-server-d84e87eab952295940cd4bccc4c88082a2afa87a.tar.gz
nextcloud-server-d84e87eab952295940cd4bccc4c88082a2afa87a.zip
Build autoloader with new composer version
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/lookup_server_connector/composer')
-rw-r--r--apps/lookup_server_connector/composer/composer/InstalledVersions.php2
-rw-r--r--apps/lookup_server_connector/composer/composer/autoload_classmap.php2
-rw-r--r--apps/lookup_server_connector/composer/composer/autoload_namespaces.php2
-rw-r--r--apps/lookup_server_connector/composer/composer/autoload_psr4.php2
-rw-r--r--apps/lookup_server_connector/composer/composer/autoload_real.php15
5 files changed, 8 insertions, 15 deletions
diff --git a/apps/lookup_server_connector/composer/composer/InstalledVersions.php b/apps/lookup_server_connector/composer/composer/InstalledVersions.php
index d50e0c9fcc4..41bc143c114 100644
--- a/apps/lookup_server_connector/composer/composer/InstalledVersions.php
+++ b/apps/lookup_server_connector/composer/composer/InstalledVersions.php
@@ -21,6 +21,8 @@ use Composer\Semver\VersionParser;
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
*
* To require its presence, you can require `composer-runtime-api ^2.0`
+ *
+ * @final
*/
class InstalledVersions
{
diff --git a/apps/lookup_server_connector/composer/composer/autoload_classmap.php b/apps/lookup_server_connector/composer/composer/autoload_classmap.php
index ada33bc3340..2028c0ebfc7 100644
--- a/apps/lookup_server_connector/composer/composer/autoload_classmap.php
+++ b/apps/lookup_server_connector/composer/composer/autoload_classmap.php
@@ -2,7 +2,7 @@
// autoload_classmap.php @generated by Composer
-$vendorDir = dirname(dirname(__FILE__));
+$vendorDir = dirname(__DIR__);
$baseDir = $vendorDir;
return array(
diff --git a/apps/lookup_server_connector/composer/composer/autoload_namespaces.php b/apps/lookup_server_connector/composer/composer/autoload_namespaces.php
index 71c9e91858d..3f5c9296251 100644
--- a/apps/lookup_server_connector/composer/composer/autoload_namespaces.php
+++ b/apps/lookup_server_connector/composer/composer/autoload_namespaces.php
@@ -2,7 +2,7 @@
// autoload_namespaces.php @generated by Composer
-$vendorDir = dirname(dirname(__FILE__));
+$vendorDir = dirname(__DIR__);
$baseDir = $vendorDir;
return array(
diff --git a/apps/lookup_server_connector/composer/composer/autoload_psr4.php b/apps/lookup_server_connector/composer/composer/autoload_psr4.php
index 1532b4d9c52..654eeac0616 100644
--- a/apps/lookup_server_connector/composer/composer/autoload_psr4.php
+++ b/apps/lookup_server_connector/composer/composer/autoload_psr4.php
@@ -2,7 +2,7 @@
// autoload_psr4.php @generated by Composer
-$vendorDir = dirname(dirname(__FILE__));
+$vendorDir = dirname(__DIR__);
$baseDir = $vendorDir;
return array(
diff --git a/apps/lookup_server_connector/composer/composer/autoload_real.php b/apps/lookup_server_connector/composer/composer/autoload_real.php
index 3f635cf99aa..798f093c6e8 100644
--- a/apps/lookup_server_connector/composer/composer/autoload_real.php
+++ b/apps/lookup_server_connector/composer/composer/autoload_real.php
@@ -23,20 +23,11 @@ class ComposerAutoloaderInitLookupServerConnector
}
spl_autoload_register(array('ComposerAutoloaderInitLookupServerConnector', 'loadClassLoader'), true, true);
- self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
+ self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInitLookupServerConnector', 'loadClassLoader'));
- $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
- if ($useStaticLoader) {
- require __DIR__ . '/autoload_static.php';
-
- call_user_func(\Composer\Autoload\ComposerStaticInitLookupServerConnector::getInitializer($loader));
- } else {
- $classMap = require __DIR__ . '/autoload_classmap.php';
- if ($classMap) {
- $loader->addClassMap($classMap);
- }
- }
+ require __DIR__ . '/autoload_static.php';
+ \Composer\Autoload\ComposerStaticInitLookupServerConnector::getInitializer($loader)();
$loader->setClassMapAuthoritative(true);
$loader->register(true);