From b8c3c13467d71a08563f7024d41eed8b63f3b228 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 20 Aug 2024 11:34:39 +0800 Subject: [PATCH] MDL-82824 core: Order the PSR4 component list --- lib/classes/component.php | 74 +++++++++++++++++++-------------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/lib/classes/component.php b/lib/classes/component.php index b7493c7aa39..931e69c11e2 100644 --- a/lib/classes/component.php +++ b/lib/classes/component.php @@ -102,60 +102,60 @@ class component { ]; /** @var array> associative array of PRS-4 namespaces and corresponding paths. */ protected static $psr4namespaces = [ - \Html2Text::class => 'lib/html2text/src', - \MaxMind\Db::class => 'lib/maxmind/MaxMind/src/MaxMind/Db', + \Aws::class => 'lib/aws-sdk/src', + \CFPropertyList::class => 'lib/plist/src/CFPropertyList', + \Complex::class => 'lib/phpspreadsheet/markbaker/classes/src', + \DI::class => 'lib/php-di/php-di/src', \GeoIp2::class => 'lib/maxmind/GeoIp2/src', - \Sabberworm\CSS::class => 'lib/php-css-parser/src', + \FastRoute::class => 'lib/nikic/fast-route/src', + \Firebase\JWT::class => 'lib/php-jwt/src', + \GuzzleHttp::class => 'lib/guzzlehttp/guzzle/src', + \GuzzleHttp\Promise::class => 'lib/guzzlehttp/promises/src', + \GuzzleHttp\Psr7::class => 'lib/guzzlehttp/psr7/src', + \Html2Text::class => 'lib/html2text/src', + \IMSGlobal\LTI::class => 'lib/ltiprovider/src', + \Invoker::class => 'lib/php-di/invoker/src', + \JmesPath::class => 'lib/jmespath/src', + \Kevinrob\GuzzleCache::class => 'lib/guzzlehttp/kevinrob/guzzlecache/src', + \Laravel\SerializableClosure::class => 'lib/laravel/serializable-closure/src', + \lbuchs\WebAuthn::class => 'lib/webauthn/src', + \libphonenumber::class => 'lib/giggsey/libphonenumber-for-php-lite/src', + \Matrix::class => 'lib/phpspreadsheet/markbaker/classes/src', + \MatthiasMullie\Minify::class => 'lib/minify/matthiasmullie-minify/src', + \MatthiasMullie\PathConverter::class => 'lib/minify/matthiasmullie-pathconverter/src', + \MaxMind\Db::class => 'lib/maxmind/MaxMind/src/MaxMind/Db', + \Michelf::class => 'lib/markdown/Michelf', \MoodleHQ::class => [ 'lib/rtlcss/src/MoodleHQ', ], - \ScssPhp\ScssPhp::class => 'lib/scssphp/src', - \OpenSpout::class => 'lib/openspout/src', - \MatthiasMullie\Minify::class => 'lib/minify/matthiasmullie-minify/src', - \MatthiasMullie\PathConverter::class => 'lib/minify/matthiasmullie-pathconverter/src', - \IMSGlobal\LTI::class => 'lib/ltiprovider/src', - \Packback\Lti1p3::class => 'lib/lti1p3/src', - \Phpml::class => 'lib/mlbackend/php/phpml/src/Phpml', - \PHPMailer\PHPMailer::class => 'lib/phpmailer/src', - \RedeyeVentures::class => 'lib/geopattern-php/src', - \Firebase\JWT::class => 'lib/php-jwt/src', - \ZipStream::class => 'lib/zipstream/src', \MyCLabs\Enum::class => 'lib/php-enum/src', + \OpenSpout::class => 'lib/openspout/src', + \Packback\Lti1p3::class => 'lib/lti1p3/src', + \PHPMailer\PHPMailer::class => 'lib/phpmailer/src', + \PhpOffice\PhpSpreadsheet::class => 'lib/phpspreadsheet/phpspreadsheet/src/PhpSpreadsheet', \PhpXmlRpc::class => 'lib/phpxmlrpc/src', + \Phpml::class => 'lib/mlbackend/php/phpml/src/Phpml', + \Psr\Clock::class => 'lib/psr/clock/src', + \Psr\Container::class => 'lib/psr/container/src', + \Psr\EventDispatcher::class => 'lib/psr/event-dispatcher/src', \Psr\Http\Client::class => 'lib/psr/http-client/src', \Psr\Http\Message::class => [ - 'lib/psr/http-message/src', 'lib/psr/http-factory/src', + 'lib/psr/http-message/src', ], \Psr\Http\Server::class => [ "lib/psr/http-server-handler/src", "lib/psr/http-server-middleware/src", ], - \Psr\EventDispatcher::class => 'lib/psr/event-dispatcher/src', - \Psr\Clock::class => 'lib/psr/clock/src', - \Psr\Container::class => 'lib/psr/container/src', \Psr\Log::class => "lib/psr/log/src", \Psr\SimpleCache::class => 'lib/psr/simple-cache/src', - \GuzzleHttp\Psr7::class => 'lib/guzzlehttp/psr7/src', - \GuzzleHttp\Promise::class => 'lib/guzzlehttp/promises/src', - \GuzzleHttp::class => 'lib/guzzlehttp/guzzle/src', - \Kevinrob\GuzzleCache::class => 'lib/guzzlehttp/kevinrob/guzzlecache/src', - \Aws::class => 'lib/aws-sdk/src', - \JmesPath::class => 'lib/jmespath/src', - \Laravel\SerializableClosure::class => 'lib/laravel/serializable-closure/src', - \DI::class => 'lib/php-di/php-di/src', - \Complex::class => 'lib/phpspreadsheet/markbaker/classes/src', - \Matrix::class => 'lib/phpspreadsheet/markbaker/classes/src', - \PhpOffice\PhpSpreadsheet::class => 'lib/phpspreadsheet/phpspreadsheet/src/PhpSpreadsheet', - \Invoker::class => 'lib/php-di/invoker/src', - \FastRoute::class => 'lib/nikic/fast-route/src', - \Slim::class => 'lib/slim/slim/Slim', - \libphonenumber::class => 'lib/giggsey/libphonenumber-for-php-lite/src', - \Spatie\Cloneable::class => 'lib/spatie/php-cloneable/src', + \RedeyeVentures::class => 'lib/geopattern-php/src', + \Sabberworm\CSS::class => 'lib/php-css-parser/src', + \ScssPhp\ScssPhp::class => 'lib/scssphp/src', \SimplePie::class => 'lib/simplepie/src', - \Michelf::class => 'lib/markdown/Michelf', - \CFPropertyList::class => 'lib/plist/src/CFPropertyList', - \lbuchs\WebAuthn::class => 'lib/webauthn/src', + \Slim::class => 'lib/slim/slim/Slim', + \Spatie\Cloneable::class => 'lib/spatie/php-cloneable/src', + \ZipStream::class => 'lib/zipstream/src', ]; /**