From 5045f53f64cc579d3aa2d286e10f6d3d9793dc6b Mon Sep 17 00:00:00 2001 From: Tiavina Date: Mon, 24 Feb 2025 21:17:15 +0300 Subject: [PATCH 1/3] revert autoload vendor --- gestion/vendor/composer/autoload_classmap.php | 1 + gestion/vendor/composer/autoload_psr4.php | 1 + gestion/vendor/composer/autoload_static.php | 1 + 3 files changed, 3 insertions(+) diff --git a/gestion/vendor/composer/autoload_classmap.php b/gestion/vendor/composer/autoload_classmap.php index 345452c..7038b19 100644 --- a/gestion/vendor/composer/autoload_classmap.php +++ b/gestion/vendor/composer/autoload_classmap.php @@ -427,6 +427,7 @@ return array( 'PharIo\\Version\\VersionConstraintValue' => $vendorDir . '/phar-io/version/src/VersionConstraintValue.php', 'PharIo\\Version\\VersionNumber' => $vendorDir . '/phar-io/version/src/VersionNumber.php', 'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php', + 'ReturnTypeWillChange' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php', 'SebastianBergmann\\CliParser\\AmbiguousOptionException' => $vendorDir . '/sebastian/cli-parser/src/exceptions/AmbiguousOptionException.php', 'SebastianBergmann\\CliParser\\Exception' => $vendorDir . '/sebastian/cli-parser/src/exceptions/Exception.php', 'SebastianBergmann\\CliParser\\OptionDoesNotAllowArgumentException' => $vendorDir . '/sebastian/cli-parser/src/exceptions/OptionDoesNotAllowArgumentException.php', diff --git a/gestion/vendor/composer/autoload_psr4.php b/gestion/vendor/composer/autoload_psr4.php index ee6d7ee..722e06e 100644 --- a/gestion/vendor/composer/autoload_psr4.php +++ b/gestion/vendor/composer/autoload_psr4.php @@ -8,6 +8,7 @@ $baseDir = dirname($vendorDir); return array( 'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/reflection-docblock/src', $vendorDir . '/phpdocumentor/type-resolver/src'), 'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'), + 'Symfony\\Polyfill\\Php81\\' => array($vendorDir . '/symfony/polyfill-php81'), 'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'), 'Symfony\\Polyfill\\Php73\\' => array($vendorDir . '/symfony/polyfill-php73'), 'Symfony\\Polyfill\\Php72\\' => array($vendorDir . '/symfony/polyfill-php72'), diff --git a/gestion/vendor/composer/autoload_static.php b/gestion/vendor/composer/autoload_static.php index 51ffdec..a2d7748 100644 --- a/gestion/vendor/composer/autoload_static.php +++ b/gestion/vendor/composer/autoload_static.php @@ -663,6 +663,7 @@ class ComposerStaticInit4e4b1a7db13d3f09b3be1f5826185b1b 'PharIo\\Version\\VersionConstraintValue' => __DIR__ . '/..' . '/phar-io/version/src/VersionConstraintValue.php', 'PharIo\\Version\\VersionNumber' => __DIR__ . '/..' . '/phar-io/version/src/VersionNumber.php', 'PhpToken' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php', + 'ReturnTypeWillChange' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php', 'SebastianBergmann\\CliParser\\AmbiguousOptionException' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/AmbiguousOptionException.php', 'SebastianBergmann\\CliParser\\Exception' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/Exception.php', 'SebastianBergmann\\CliParser\\OptionDoesNotAllowArgumentException' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/OptionDoesNotAllowArgumentException.php', From 10156be75827c092f5c1ee0b4aeae395948be95c Mon Sep 17 00:00:00 2001 From: Tiavina Date: Mon, 24 Feb 2025 21:17:59 +0300 Subject: [PATCH 2/3] remove require autoload on listener --- gestion/lib/AppInfo/Application.php | 1 - 1 file changed, 1 deletion(-) diff --git a/gestion/lib/AppInfo/Application.php b/gestion/lib/AppInfo/Application.php index 2e85b2b..6496c86 100644 --- a/gestion/lib/AppInfo/Application.php +++ b/gestion/lib/AppInfo/Application.php @@ -3,7 +3,6 @@ //declare(strict_types=1); namespace OCA\Gestion\AppInfo; -require_once '/var/www/html/custom_apps/gestion/vendor/autoload.php'; use OCA\DAV\Events\CalendarObjectCreatedEvent; use OCA\DAV\Events\CalendarObjectMovedToTrashEvent; From bd06f40f46f1abe7cf0bfb646b0f749d7ca94d78 Mon Sep 17 00:00:00 2001 From: Tiavina Date: Mon, 24 Feb 2025 21:34:48 +0300 Subject: [PATCH 3/3] remove autoload polyfill php 8.1 --- gestion/lib/Service/Order/OrderPdfService.php | 2 +- gestion/vendor/composer/autoload_classmap.php | 1 - gestion/vendor/composer/autoload_psr4.php | 1 - gestion/vendor/composer/autoload_static.php | 7 ------- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/gestion/lib/Service/Order/OrderPdfService.php b/gestion/lib/Service/Order/OrderPdfService.php index b132e66..ac7bb55 100644 --- a/gestion/lib/Service/Order/OrderPdfService.php +++ b/gestion/lib/Service/Order/OrderPdfService.php @@ -25,7 +25,7 @@ declare(strict_types=1); */ namespace OCA\Gestion\Service\Order; -// require_once __DIR__ . '/../../../vendor/autoload.php'; +require_once __DIR__ . '/../../../vendor/autoload.php'; use DateTime; use OCA\Gestion\Constants\BddConstant; diff --git a/gestion/vendor/composer/autoload_classmap.php b/gestion/vendor/composer/autoload_classmap.php index 7038b19..345452c 100644 --- a/gestion/vendor/composer/autoload_classmap.php +++ b/gestion/vendor/composer/autoload_classmap.php @@ -427,7 +427,6 @@ return array( 'PharIo\\Version\\VersionConstraintValue' => $vendorDir . '/phar-io/version/src/VersionConstraintValue.php', 'PharIo\\Version\\VersionNumber' => $vendorDir . '/phar-io/version/src/VersionNumber.php', 'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php', - 'ReturnTypeWillChange' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php', 'SebastianBergmann\\CliParser\\AmbiguousOptionException' => $vendorDir . '/sebastian/cli-parser/src/exceptions/AmbiguousOptionException.php', 'SebastianBergmann\\CliParser\\Exception' => $vendorDir . '/sebastian/cli-parser/src/exceptions/Exception.php', 'SebastianBergmann\\CliParser\\OptionDoesNotAllowArgumentException' => $vendorDir . '/sebastian/cli-parser/src/exceptions/OptionDoesNotAllowArgumentException.php', diff --git a/gestion/vendor/composer/autoload_psr4.php b/gestion/vendor/composer/autoload_psr4.php index 722e06e..ee6d7ee 100644 --- a/gestion/vendor/composer/autoload_psr4.php +++ b/gestion/vendor/composer/autoload_psr4.php @@ -8,7 +8,6 @@ $baseDir = dirname($vendorDir); return array( 'phpDocumentor\\Reflection\\' => array($vendorDir . '/phpdocumentor/reflection-common/src', $vendorDir . '/phpdocumentor/reflection-docblock/src', $vendorDir . '/phpdocumentor/type-resolver/src'), 'Webmozart\\Assert\\' => array($vendorDir . '/webmozart/assert/src'), - 'Symfony\\Polyfill\\Php81\\' => array($vendorDir . '/symfony/polyfill-php81'), 'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'), 'Symfony\\Polyfill\\Php73\\' => array($vendorDir . '/symfony/polyfill-php73'), 'Symfony\\Polyfill\\Php72\\' => array($vendorDir . '/symfony/polyfill-php72'), diff --git a/gestion/vendor/composer/autoload_static.php b/gestion/vendor/composer/autoload_static.php index a2d7748..415cd7d 100644 --- a/gestion/vendor/composer/autoload_static.php +++ b/gestion/vendor/composer/autoload_static.php @@ -12,7 +12,6 @@ class ComposerStaticInit4e4b1a7db13d3f09b3be1f5826185b1b '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => __DIR__ . '/..' . '/symfony/polyfill-mbstring/bootstrap.php', '320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php', '0d59ee240a4cd96ddbb4ff164fccea4d' => __DIR__ . '/..' . '/symfony/polyfill-php73/bootstrap.php', - '23c18046f52bef3eea034657bafda50f' => __DIR__ . '/..' . '/symfony/polyfill-php81/bootstrap.php', '667aeda72477189d0494fecd327c3641' => __DIR__ . '/..' . '/symfony/var-dumper/Resources/functions/dump.php', '6124b4c8570aa390c21fafd04a26c69f' => __DIR__ . '/..' . '/myclabs/deep-copy/src/DeepCopy/deep_copy.php', '2a3c2110e8e0295330dc3d11a4cbc4cb' => __DIR__ . '/..' . '/php-webdriver/webdriver/lib/Exception/TimeoutException.php', @@ -31,7 +30,6 @@ class ComposerStaticInit4e4b1a7db13d3f09b3be1f5826185b1b ), 'S' => array ( - 'Symfony\\Polyfill\\Php81\\' => 23, 'Symfony\\Polyfill\\Php80\\' => 23, 'Symfony\\Polyfill\\Php73\\' => 23, 'Symfony\\Polyfill\\Php72\\' => 23, @@ -91,10 +89,6 @@ class ComposerStaticInit4e4b1a7db13d3f09b3be1f5826185b1b array ( 0 => __DIR__ . '/..' . '/webmozart/assert/src', ), - 'Symfony\\Polyfill\\Php81\\' => - array ( - 0 => __DIR__ . '/..' . '/symfony/polyfill-php81', - ), 'Symfony\\Polyfill\\Php80\\' => array ( 0 => __DIR__ . '/..' . '/symfony/polyfill-php80', @@ -663,7 +657,6 @@ class ComposerStaticInit4e4b1a7db13d3f09b3be1f5826185b1b 'PharIo\\Version\\VersionConstraintValue' => __DIR__ . '/..' . '/phar-io/version/src/VersionConstraintValue.php', 'PharIo\\Version\\VersionNumber' => __DIR__ . '/..' . '/phar-io/version/src/VersionNumber.php', 'PhpToken' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php', - 'ReturnTypeWillChange' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php', 'SebastianBergmann\\CliParser\\AmbiguousOptionException' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/AmbiguousOptionException.php', 'SebastianBergmann\\CliParser\\Exception' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/Exception.php', 'SebastianBergmann\\CliParser\\OptionDoesNotAllowArgumentException' => __DIR__ . '/..' . '/sebastian/cli-parser/src/exceptions/OptionDoesNotAllowArgumentException.php',