]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix an issue with the search backend update 31839/head
authorCarl Schwan <carl@carlschwan.eu>
Wed, 13 Apr 2022 08:52:26 +0000 (10:52 +0200)
committerCarl Schwan <carl@carlschwan.eu>
Thu, 14 Apr 2022 10:11:02 +0000 (12:11 +0200)
And update autoloader

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
58 files changed:
apps/accessibility/composer/autoload.php
apps/accessibility/composer/composer/autoload_real.php
apps/admin_audit/composer/autoload.php
apps/admin_audit/composer/composer/autoload_real.php
apps/cloud_federation_api/composer/autoload.php
apps/cloud_federation_api/composer/composer/autoload_real.php
apps/comments/composer/autoload.php
apps/comments/composer/composer/autoload_real.php
apps/contactsinteraction/composer/autoload.php
apps/contactsinteraction/composer/composer/autoload_real.php
apps/dav/lib/Connector/Sabre/FilesPlugin.php
apps/dav/lib/Files/FileSearchBackend.php
apps/encryption/composer/autoload.php
apps/encryption/composer/composer/autoload_real.php
apps/federatedfilesharing/composer/autoload.php
apps/federatedfilesharing/composer/composer/autoload_real.php
apps/federation/composer/autoload.php
apps/federation/composer/composer/autoload_real.php
apps/files/composer/autoload.php
apps/files/composer/composer/autoload_real.php
apps/files_sharing/composer/autoload.php
apps/files_sharing/composer/composer/autoload_real.php
apps/files_trashbin/composer/autoload.php
apps/files_trashbin/composer/composer/autoload_real.php
apps/files_versions/composer/autoload.php
apps/files_versions/composer/composer/autoload_real.php
apps/lookup_server_connector/composer/autoload.php
apps/lookup_server_connector/composer/composer/autoload_real.php
apps/oauth2/composer/autoload.php
apps/oauth2/composer/composer/autoload_real.php
apps/provisioning_api/composer/autoload.php
apps/provisioning_api/composer/composer/autoload_real.php
apps/settings/composer/autoload.php
apps/settings/composer/composer/autoload_real.php
apps/sharebymail/composer/autoload.php
apps/sharebymail/composer/composer/autoload_real.php
apps/systemtags/composer/autoload.php
apps/systemtags/composer/composer/autoload_real.php
apps/testing/composer/autoload.php
apps/testing/composer/composer/autoload_real.php
apps/twofactor_backupcodes/composer/autoload.php
apps/twofactor_backupcodes/composer/composer/autoload_real.php
apps/updatenotification/composer/autoload.php
apps/updatenotification/composer/composer/autoload_real.php
apps/user_ldap/composer/autoload.php
apps/user_ldap/composer/composer/autoload_real.php
apps/user_status/composer/autoload.php
apps/user_status/composer/composer/autoload_real.php
apps/workflowengine/composer/autoload.php
apps/workflowengine/composer/composer/autoload_real.php
lib/composer/autoload.php
lib/composer/composer/LICENSE
lib/composer/composer/autoload_classmap.php
lib/composer/composer/autoload_namespaces.php
lib/composer/composer/autoload_psr4.php
lib/composer/composer/autoload_real.php
lib/private/Metadata/MetadataManager.php
lib/private/Metadata/Provider/ExifProvider.php

index f624ded3950714c4b814322636e28db50367fb14..6f896b45abc27547372b19c0a3510545c9c33425 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitAccessibility::getLoader();
index a08983b79fe304e1c98de49cdc4404189129a143..8b2b83d313909fd7864c541b593574a257d73740 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitAccessibility
         spl_autoload_unregister(array('ComposerAutoloaderInitAccessibility', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitAccessibility::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitAccessibility::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 7970e9ebe1211d907feea915b2f788919100385a..d316fe42c512ee46199c7d04089bb40eeead7df0 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitAdminAudit::getLoader();
index ffbbdd4e269833a77fd3ebc279021a2204d8a573..bd7d1f99dd1202384c5b147580d3676b513d5d6a 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitAdminAudit
         spl_autoload_unregister(array('ComposerAutoloaderInitAdminAudit', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitAdminAudit::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitAdminAudit::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index fcf0f06284695580f8eae998ff80903931b33807..fc52f01bfafcce5ed35df7de3786dff4782e7f1b 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitCloudFederationAPI::getLoader();
index 1c7ec9607c226d09ddd56fb1c2da82761d0b762f..53093c129e3847c644779148d824e30b863d18c6 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitCloudFederationAPI
         spl_autoload_unregister(array('ComposerAutoloaderInitCloudFederationAPI', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitCloudFederationAPI::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitCloudFederationAPI::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index c974072d6b7a093b32490d613e3905c8d5ed529d..46d800ddaa8a6fef604e9b12a29192e1339592b0 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitComments::getLoader();
index 8668cfb671eb6a2abb34b4b72a156424f6a86163..7f9d22ca0a2de665a36c2c4a4a2c314f75f69469 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitComments
         spl_autoload_unregister(array('ComposerAutoloaderInitComments', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitComments::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitComments::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 7bf597cd9cddd1afd7ba0e004f5b1bc57a2e5c2c..748e5f45fe9e6ba184caae9c469f3d6a52f71ddd 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitContactsInteraction::getLoader();
index 8ba09879f543f06e6fe6feb7999793005c4dfc65..09f95c83645b07053955ff0b25d62c095902431c 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitContactsInteraction
         spl_autoload_unregister(array('ComposerAutoloaderInitContactsInteraction', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitContactsInteraction::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitContactsInteraction::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 5cc562e0ff82bf06a60dfdd3e28aceba2e09d4d4..9c4f912610bf39dfc6b23a2ce9bbee72313385c3 100644 (file)
@@ -444,7 +444,7 @@ class FilesPlugin extends ServerPlugin {
                        if ($this->config->getSystemValueBool('enable_file_metadata', true)) {
                                $propFind->handle(self::FILE_METADATA_SIZE, function () use ($node) {
                                        if (!str_starts_with($node->getFileInfo()->getMimetype(), 'image')) {
-                                               return json_encode([]);
+                                               return json_encode((object)[]);
                                        }
 
                                        if ($node->hasMetadata('size')) {
@@ -457,10 +457,10 @@ class FilesPlugin extends ServerPlugin {
                                                $sizeMetadata = $metadataManager->fetchMetadataFor('size', [$node->getId()])[$node->getId()];
 
                                                // TODO would be nice to display this in the profiler...
-                                               \OC::$server->get(LoggerInterface::class)->warning('Inefficient fetching of metadata');
+                                               \OC::$server->get(LoggerInterface::class)->debug('Inefficient fetching of metadata');
                                        }
 
-                                       return json_encode($sizeMetadata->getMetadata());
+                                       return json_encode((object)$sizeMetadata->getMetadata());
                                });
                        }
                }
index 21eb14a29bd1f7ac7a9ab09f689773345f770b70..7ee827798493d237d95121737d968c852d0552ea 100644 (file)
@@ -124,16 +124,16 @@ class FileSearchBackend implements ISearchBackend {
                        new SearchPropertyDefinition(FilesPlugin::OWNER_ID_PROPERTYNAME, true, true, false),
 
                        // select only properties
-                       new SearchPropertyDefinition('{DAV:}resourcetype', false, true, false),
-                       new SearchPropertyDefinition('{DAV:}getcontentlength', false, true, false),
-                       new SearchPropertyDefinition(FilesPlugin::CHECKSUMS_PROPERTYNAME, false, true, false),
-                       new SearchPropertyDefinition(FilesPlugin::PERMISSIONS_PROPERTYNAME, false, true, false),
-                       new SearchPropertyDefinition(FilesPlugin::GETETAG_PROPERTYNAME, false, true, false),
-                       new SearchPropertyDefinition(FilesPlugin::OWNER_DISPLAY_NAME_PROPERTYNAME, false, true, false),
-                       new SearchPropertyDefinition(FilesPlugin::DATA_FINGERPRINT_PROPERTYNAME, false, true, false),
-                       new SearchPropertyDefinition(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, false, true, false, SearchPropertyDefinition::DATATYPE_BOOLEAN),
-                       new SearchPropertyDefinition(FilesPlugin::FILE_METADATA_SIZE, false, true, false, SearchPropertyDefinition::DATATYPE_STRING),
-                       new SearchPropertyDefinition(FilesPlugin::FILEID_PROPERTYNAME, false, true, false, SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER),
+                       new SearchPropertyDefinition('{DAV:}resourcetype', true, false, false),
+                       new SearchPropertyDefinition('{DAV:}getcontentlength', true, false, false),
+                       new SearchPropertyDefinition(FilesPlugin::CHECKSUMS_PROPERTYNAME, true, false, false),
+                       new SearchPropertyDefinition(FilesPlugin::PERMISSIONS_PROPERTYNAME, true, false, false),
+                       new SearchPropertyDefinition(FilesPlugin::GETETAG_PROPERTYNAME, true, false, false),
+                       new SearchPropertyDefinition(FilesPlugin::OWNER_DISPLAY_NAME_PROPERTYNAME, true, false, false),
+                       new SearchPropertyDefinition(FilesPlugin::DATA_FINGERPRINT_PROPERTYNAME, true, false, false),
+                       new SearchPropertyDefinition(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, true, false, false, SearchPropertyDefinition::DATATYPE_BOOLEAN),
+                       new SearchPropertyDefinition(FilesPlugin::FILE_METADATA_SIZE, true, false, false, SearchPropertyDefinition::DATATYPE_STRING),
+                       new SearchPropertyDefinition(FilesPlugin::FILEID_PROPERTYNAME, true, false, false, SearchPropertyDefinition::DATATYPE_NONNEGATIVE_INTEGER),
                ];
        }
 
index 52febf19470b64ed2c241707e8a397bec9bc3809..593ddde0eb01d8feff0eb8beaa43bb87699e16e0 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitEncryption::getLoader();
index 35091c9ed4a774ba904ec9a43d8925253930d4ba..aafe8533d3d847fb1d22320bb2a5b8434e1d33e4 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitEncryption
         spl_autoload_unregister(array('ComposerAutoloaderInitEncryption', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitEncryption::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitEncryption::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 5273607f74a1a5feb8819992e453fbc72b99baf0..e839dd1bcdd35c9699cdb9c4113f7ad15a39cfd1 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitFederatedFileSharing::getLoader();
index 0a8c5bf9588a3de36cb629d7927afc539828eca1..c6f34ef0a65f26b9f4313e4b859d8b22c91fc6b8 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitFederatedFileSharing
         spl_autoload_unregister(array('ComposerAutoloaderInitFederatedFileSharing', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitFederatedFileSharing::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitFederatedFileSharing::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 45677794dd0fc3fcfe8be66f8476429c748e1e47..77ae3e1c118ff724cbb2b8601ce3060cc7476c84 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitFederation::getLoader();
index 40dc84ff20a0151c2146bb06afc1cd5eb9a9058e..b3913e0ac701d033585bc1d1474dc64c15e8107f 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitFederation
         spl_autoload_unregister(array('ComposerAutoloaderInitFederation', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitFederation::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitFederation::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 3aa13fa515d0bab9f728fba10aa8b020cfc009e7..cbac9333296881833d7176cc0bed5f5ab1db9845 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitFiles::getLoader();
index 5b2c0e86043db279f0a87ef81c85be708c172d01..e3e4d9e67ef70f59db72a98afdbb914b93d23ee0 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitFiles
         spl_autoload_unregister(array('ComposerAutoloaderInitFiles', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitFiles::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitFiles::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 0aa77c00af92770d1e893f806509c8e763f3bfa9..02b3c10c4830b78001c9c1803fc098aa4078bd63 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitFiles_Sharing::getLoader();
index 240540459849d6cdd6fb9d418a8ffb2835d3dc0b..64a23094d9db51441f942564cf39f9d69cbeaf80 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitFiles_Sharing
         spl_autoload_unregister(array('ComposerAutoloaderInitFiles_Sharing', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitFiles_Sharing::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitFiles_Sharing::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index ae6d572163ff9bc490e212ca61d35f3eb53abc0a..4e88a44133f536761f9653bd5de1ffce267403c8 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitFiles_Trashbin::getLoader();
index b9a42591b0cd3157f9c703906b9d1baf56a4a2b9..0d1aa13ee3c1b6b42cb053b33091055a8bef67e9 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitFiles_Trashbin
         spl_autoload_unregister(array('ComposerAutoloaderInitFiles_Trashbin', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitFiles_Trashbin::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitFiles_Trashbin::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 7bb72360fba3bacf8e26bc34ca153d377a19c865..f75dc09160c51e6fe02de515e8ed991cf2b698f1 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitFiles_Versions::getLoader();
index e9e2ad95149dc264d3099681cd776c4093de5282..dad15f0b55016a5312b72cfbcb3be09d145b8b1b 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitFiles_Versions
         spl_autoload_unregister(array('ComposerAutoloaderInitFiles_Versions', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitFiles_Versions::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitFiles_Versions::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index ab8f4ce80ff0cb758d4c4dd3fcef3b08e116cb21..521fd3630e4e9d2016c9a7283946d8108c0e2abf 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitLookupServerConnector::getLoader();
index 798f093c6e82e294c97240cb244c77fb9f205164..417958ba7f15972f3409f442712477db4f67f05a 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitLookupServerConnector
         spl_autoload_unregister(array('ComposerAutoloaderInitLookupServerConnector', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitLookupServerConnector::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitLookupServerConnector::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 276dedf42c2c7779b84c71e37b5191b377b768d9..c7fd27c188d49876db9d3f52fb79ece08d074781 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitOAuth2::getLoader();
index 4d9e729ac266829eed1d419f6bbec084f12c85dd..0253518be84c8386dda70c51e90c97027b88e19a 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitOAuth2
         spl_autoload_unregister(array('ComposerAutoloaderInitOAuth2', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitOAuth2::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitOAuth2::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 9734ee42b196e37d906ddcd1c58ae6f65cb79c0f..d01dfa2c74b72f3ed51af219df2924bbce0d3d7e 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitProvisioning_API::getLoader();
index bada942777d92674bc583501219213dc75a2b244..a3b1fdeb2470578129f7a6cb66d8f7e268f48b69 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitProvisioning_API
         spl_autoload_unregister(array('ComposerAutoloaderInitProvisioning_API', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitProvisioning_API::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitProvisioning_API::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 04ff46ee9877e90b7cbdefecc7f7bbaf46def8d4..e7087dceec21a21e1b7004ca7bdcd9a28faf8222 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitSettings::getLoader();
index 0e9941ee04d7c243b6df2f52ac0193840e46efc7..865e01a7fd9648660a24624f37209bbb7f503ef9 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitSettings
         spl_autoload_unregister(array('ComposerAutoloaderInitSettings', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitSettings::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitSettings::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index da43a4ff256a979acb2a434573087fc1c6342f0d..bef284b432ff748cdac031fc20f7da9aabbf9a23 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitShareByMail::getLoader();
index 47a2c20fd5edfa2f0bb60c9014ca07ecbbbd0288..cfbfdab1b1e5e4c5eb82d1b5e78a343388f34dad 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitShareByMail
         spl_autoload_unregister(array('ComposerAutoloaderInitShareByMail', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitShareByMail::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitShareByMail::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 30f4cd27d40d19f50a9cca25093874a90efe87c7..5f15d59315076af9c525d007d7b8df994230eb2c 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitSystemTags::getLoader();
index f9bc1f2eaffc86d6e6bd421e62d78a87590f053a..340f7c9e6ed717b3dfb0c46284ab40539307c1c3 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitSystemTags
         spl_autoload_unregister(array('ComposerAutoloaderInitSystemTags', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitSystemTags::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitSystemTags::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index dc2a7034ffab45d1b4024cd1924f6013c704a816..1ac43d5c8e98f443241002085788171c45f43a53 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitTesting::getLoader();
index 805c585644d93b737e78cb8f8024f3d102a4f9a1..0d4fabd66a06570c96ca9fe688ac6a3b48b7323d 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitTesting
         spl_autoload_unregister(array('ComposerAutoloaderInitTesting', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitTesting::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitTesting::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 03a8800c3187189e70669370fc883f589d996d54..091a9b4fefaf7a86de64d270033ad34d1cf0fd0c 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitTwoFactorBackupCodes::getLoader();
index 0c6e6b19f3366753eb8c554ded78ceaa19d81b07..b063e83100f5e276b98e7bb9e982ceb2230fab0f 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitTwoFactorBackupCodes
         spl_autoload_unregister(array('ComposerAutoloaderInitTwoFactorBackupCodes', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitTwoFactorBackupCodes::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitTwoFactorBackupCodes::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 47cc4d587a54599ab1e64d9a45356435c51c95ce..e715564a5bdb38860ee9e9c75a982a24de98d722 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitUpdateNotification::getLoader();
index 89854cd42f4c6ee7ced9f919028bd0934c9c3051..b7569aff2d16f3f4928b63d7dbe854e8c5e8a23d 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitUpdateNotification
         spl_autoload_unregister(array('ComposerAutoloaderInitUpdateNotification', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitUpdateNotification::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitUpdateNotification::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 24824c188e5e372a264209ae6ef8b787d1692d02..d1e331c189ec12287148e54f0a99c9a957b588d2 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitUser_LDAP::getLoader();
index 0e1a6558e55b1da9e318f7b93e2215e05603dab8..6f0c636e7d50a5d37d8ddc203f6d4e858ef90d3f 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitUser_LDAP
         spl_autoload_unregister(array('ComposerAutoloaderInitUser_LDAP', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitUser_LDAP::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitUser_LDAP::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index b22563e6f83ec27198fa115a382d495a2a3cfc8f..a82d4105451f1cc7ff88265fb494028cede9d45b 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitUserStatus::getLoader();
index 4ffa4b4201b1b30cc10c6aae5154fdedd4956251..205d97809301ef374a5d8f3364d2b1e180b9a2b4 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitUserStatus
         spl_autoload_unregister(array('ComposerAutoloaderInitUserStatus', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitUserStatus::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitUserStatus::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 003e945ff8200db7fc3e2d114a8d758f3a306bfd..74a2777acf24ffe41399d8a7cc37ac8ac0cb6b94 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInitWorkflowEngine::getLoader();
index 8ed8cb2a7b4a2757889d8259495a90cb27a2c8cb..cdc2b8a55b48dd533dd9ec873e2732d539dfc768 100644 (file)
@@ -27,7 +27,7 @@ class ComposerAutoloaderInitWorkflowEngine
         spl_autoload_unregister(array('ComposerAutoloaderInitWorkflowEngine', 'loadClassLoader'));
 
         require __DIR__ . '/autoload_static.php';
-        \Composer\Autoload\ComposerStaticInitWorkflowEngine::getInitializer($loader)();
+        call_user_func(\Composer\Autoload\ComposerStaticInitWorkflowEngine::getInitializer($loader));
 
         $loader->setClassMapAuthoritative(true);
         $loader->register(true);
index 6de0160c0b5b49b30ec4d803dcb04c3407a36020..a3d144b1777de8676768004b3a5069cf3dd6e436 100644 (file)
@@ -2,6 +2,11 @@
 
 // autoload.php @generated by Composer
 
+if (PHP_VERSION_ID < 50600) {
+    echo '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;
+    exit(1);
+}
+
 require_once __DIR__ . '/composer/autoload_real.php';
 
 return ComposerAutoloaderInit53792487c5a8370acc0b06b1a864ff4c::getLoader();
index 62ecfd8d0046b60517ea7370300f52744f1ab85d..f27399a042d95c4708af3a8c74d35d338763cf8f 100644 (file)
@@ -1,3 +1,4 @@
+
 Copyright (c) Nils Adermann, Jordi Boggiano
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -17,3 +18,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
+
index be40cd4c60713556c52cfdd7bbe95e8221f79995..685fae9bef11cef9e11b59747e17a663c177b11e 100644 (file)
@@ -2,7 +2,7 @@
 
 // autoload_classmap.php @generated by Composer
 
-$vendorDir = dirname(dirname(__FILE__));
+$vendorDir = dirname(__DIR__);
 $baseDir = dirname(dirname($vendorDir));
 
 return array(
index 4a9c20beed0715a492b947b0a858acdf2fe0066d..f1ae7a0ffec5ea6b442e7a0483e3ba7feb2e2997 100644 (file)
@@ -2,7 +2,7 @@
 
 // autoload_namespaces.php @generated by Composer
 
-$vendorDir = dirname(dirname(__FILE__));
+$vendorDir = dirname(__DIR__);
 $baseDir = dirname(dirname($vendorDir));
 
 return array(
index b641d9c6a03195b92c308e6fe4929b1fbd9fe508..74e48cf69ae282da037509240c583d4634fbe094 100644 (file)
@@ -2,7 +2,7 @@
 
 // autoload_psr4.php @generated by Composer
 
-$vendorDir = dirname(dirname(__FILE__));
+$vendorDir = dirname(__DIR__);
 $baseDir = dirname(dirname($vendorDir));
 
 return array(
index a5748c7a891a8de1828c44495e119f08538af6a7..eecff48bcf9f32c9c58fab137e2d0a8467f55608 100644 (file)
@@ -23,30 +23,11 @@ class ComposerAutoloaderInit53792487c5a8370acc0b06b1a864ff4c
         }
 
         spl_autoload_register(array('ComposerAutoloaderInit53792487c5a8370acc0b06b1a864ff4c', '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('ComposerAutoloaderInit53792487c5a8370acc0b06b1a864ff4c', '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\ComposerStaticInit53792487c5a8370acc0b06b1a864ff4c::getInitializer($loader));
-        } else {
-            $map = require __DIR__ . '/autoload_namespaces.php';
-            foreach ($map as $namespace => $path) {
-                $loader->set($namespace, $path);
-            }
-
-            $map = require __DIR__ . '/autoload_psr4.php';
-            foreach ($map as $namespace => $path) {
-                $loader->setPsr4($namespace, $path);
-            }
-
-            $classMap = require __DIR__ . '/autoload_classmap.php';
-            if ($classMap) {
-                $loader->addClassMap($classMap);
-            }
-        }
+        require __DIR__ . '/autoload_static.php';
+        call_user_func(\Composer\Autoload\ComposerStaticInit53792487c5a8370acc0b06b1a864ff4c::getInitializer($loader));
 
         $loader->register(true);
 
index 69e9cb3c852e6cf54f1e874d576aa4fd109927b0..d1cb896febfc5ccc55d1fe9da1b459e1396643ee 100644 (file)
@@ -93,7 +93,12 @@ class MetadataManager implements IMetadataManager {
        public function getCapabilities(): array {
                $capabilities = [];
                foreach ($this->providers as $supportedMimetype => $provider) {
-                       $capabilities[$supportedMimetype] = $provider::groupsProvided();
+                       foreach ($provider::groupsProvided() as $group) {
+                               if (isset($capabilities[$group])) {
+                                       $capabilities[$group][] = $supportedMimetype;
+                               }
+                               $capabilities[$group] = [$supportedMimetype];
+                       }
                }
                return $capabilities;
        }
index 91c858f6794877eea3fbe1885f98a5ba1a577087..2e1eb1d42086b0013ce5f67424396bfa2dd96d00 100644 (file)
@@ -25,6 +25,14 @@ class ExifProvider implements IMetadataProvider {
                $size->setMetadata([]);
 
                if (!$data) {
+                       $sizeResult = getimagesizefromstring($file->getContent());
+                       if ($sizeResult !== false) {
+                               $size->setMetadata([
+                                       'width' => $sizeResult[0],
+                                       'height' => $sizeResult[1],
+                               ]);
+                       }
+
                        return [
                                'size' => $size,
                        ];