Skip to content

Commit

Permalink
Merge branch 'nextcloud:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
violethaze74 committed Sep 27, 2021
2 parents 1ce9720 + ee49498 commit 72ff1b5
Show file tree
Hide file tree
Showing 720 changed files with 10,092 additions and 3,578 deletions.
2 changes: 1 addition & 1 deletion 3rdparty
Submodule 3rdparty updated 79 files
+6 −2 .github/workflows/composer.yml
+0 −10 README.md
+0 −4 composer.json
+6 −157 composer.lock
+102 −11 composer/ClassLoader.php
+6 −6 composer/InstalledVersions.php
+14 −56 composer/autoload_classmap.php
+0 −2 composer/autoload_psr4.php
+14 −66 composer/autoload_static.php
+11 −164 composer/installed.json
+6 −24 composer/installed.php
+2 −4 composer/package-versions-deprecated/src/PackageVersions/Versions.php
+18 −0 doctrine/event-manager/.doctrine-project.json
+0 −19 league/flysystem/LICENSE
+0 −69 league/flysystem/composer.json
+0 −72 league/flysystem/src/Adapter/AbstractAdapter.php
+0 −705 league/flysystem/src/Adapter/AbstractFtpAdapter.php
+0 −12 league/flysystem/src/Adapter/CanOverwriteFiles.php
+0 −579 league/flysystem/src/Adapter/Ftp.php
+0 −48 league/flysystem/src/Adapter/Ftpd.php
+0 −533 league/flysystem/src/Adapter/Local.php
+0 −144 league/flysystem/src/Adapter/NullAdapter.php
+0 −33 league/flysystem/src/Adapter/Polyfill/NotSupportingVisibilityTrait.php
+0 −51 league/flysystem/src/Adapter/Polyfill/StreamedCopyTrait.php
+0 −44 league/flysystem/src/Adapter/Polyfill/StreamedReadingTrait.php
+0 −9 league/flysystem/src/Adapter/Polyfill/StreamedTrait.php
+0 −60 league/flysystem/src/Adapter/Polyfill/StreamedWritingTrait.php
+0 −8 league/flysystem/src/Adapter/SynologyFtp.php
+0 −118 league/flysystem/src/AdapterInterface.php
+0 −107 league/flysystem/src/Config.php
+0 −49 league/flysystem/src/ConfigAwareTrait.php
+0 −9 league/flysystem/src/ConnectionErrorException.php
+0 −9 league/flysystem/src/ConnectionRuntimeException.php
+0 −31 league/flysystem/src/Directory.php
+0 −8 league/flysystem/src/Exception.php
+0 −205 league/flysystem/src/File.php
+0 −37 league/flysystem/src/FileExistsException.php
+0 −37 league/flysystem/src/FileNotFoundException.php
+0 −408 league/flysystem/src/Filesystem.php
+0 −7 league/flysystem/src/FilesystemException.php
+0 −284 league/flysystem/src/FilesystemInterface.php
+0 −12 league/flysystem/src/FilesystemNotFoundException.php
+0 −137 league/flysystem/src/Handler.php
+0 −9 league/flysystem/src/InvalidRootException.php
+0 −650 league/flysystem/src/MountManager.php
+0 −37 league/flysystem/src/NotSupportedException.php
+0 −24 league/flysystem/src/Plugin/AbstractPlugin.php
+0 −34 league/flysystem/src/Plugin/EmptyDir.php
+0 −44 league/flysystem/src/Plugin/ForcedCopy.php
+0 −44 league/flysystem/src/Plugin/ForcedRename.php
+0 −51 league/flysystem/src/Plugin/GetWithMetadata.php
+0 −35 league/flysystem/src/Plugin/ListFiles.php
+0 −36 league/flysystem/src/Plugin/ListPaths.php
+0 −60 league/flysystem/src/Plugin/ListWith.php
+0 −97 league/flysystem/src/Plugin/PluggableTrait.php
+0 −10 league/flysystem/src/Plugin/PluginNotFoundException.php
+0 −20 league/flysystem/src/PluginInterface.php
+0 −88 league/flysystem/src/ReadInterface.php
+0 −10 league/flysystem/src/RootViolationException.php
+0 −39 league/flysystem/src/SafeStorage.php
+0 −18 league/flysystem/src/UnreadableFileException.php
+0 −353 league/flysystem/src/Util.php
+0 −122 league/flysystem/src/Util/ContentListingFormatter.php
+0 −80 league/flysystem/src/Util/MimeType.php
+0 −36 league/flysystem/src/Util/StreamHasher.php
+0 −19 league/mime-type-detection/LICENSE
+0 −33 league/mime-type-detection/composer.json
+0 −13 league/mime-type-detection/src/EmptyExtensionToMimeTypeMap.php
+0 −42 league/mime-type-detection/src/ExtensionMimeTypeDetector.php
+0 −10 league/mime-type-detection/src/ExtensionToMimeTypeMap.php
+0 −79 league/mime-type-detection/src/FinfoMimeTypeDetector.php
+0 −1,209 league/mime-type-detection/src/GeneratedExtensionToMimeTypeMap.php
+0 −19 league/mime-type-detection/src/MimeTypeDetector.php
+29 −21 pear/archive_tar/Archive/Tar.php
+19 −4 pear/archive_tar/package.xml
+58 −0 psr/log/README.md
+27 −0 ralouphie/getallheaders/README.md
+113 −0 ramsey/collection/SECURITY.md
+3 −0 symfony/event-dispatcher-contracts/.gitignore
113 changes: 102 additions & 11 deletions apps/accessibility/composer/composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,75 @@
*/
class ClassLoader
{
/** @var ?string */
private $vendorDir;

// PSR-4
/**
* @var array[]
* @psalm-var array<string, array<string, int>>
*/
private $prefixLengthsPsr4 = array();
/**
* @var array[]
* @psalm-var array<string, array<int, string>>
*/
private $prefixDirsPsr4 = array();
/**
* @var array[]
* @psalm-var array<string, string>
*/
private $fallbackDirsPsr4 = array();

// PSR-0
/**
* @var array[]
* @psalm-var array<string, array<string, string[]>>
*/
private $prefixesPsr0 = array();
/**
* @var array[]
* @psalm-var array<string, string>
*/
private $fallbackDirsPsr0 = array();

/** @var bool */
private $useIncludePath = false;

/**
* @var string[]
* @psalm-var array<string, string>
*/
private $classMap = array();

/** @var bool */
private $classMapAuthoritative = false;

/**
* @var bool[]
* @psalm-var array<string, bool>
*/
private $missingClasses = array();

/** @var ?string */
private $apcuPrefix;

/**
* @var self[]
*/
private static $registeredLoaders = array();

/**
* @param ?string $vendorDir
*/
public function __construct($vendorDir = null)
{
$this->vendorDir = $vendorDir;
}

/**
* @return string[]
*/
public function getPrefixes()
{
if (!empty($this->prefixesPsr0)) {
Expand All @@ -75,28 +120,47 @@ public function getPrefixes()
return array();
}

/**
* @return array[]
* @psalm-return array<string, array<int, string>>
*/
public function getPrefixesPsr4()
{
return $this->prefixDirsPsr4;
}

/**
* @return array[]
* @psalm-return array<string, string>
*/
public function getFallbackDirs()
{
return $this->fallbackDirsPsr0;
}

/**
* @return array[]
* @psalm-return array<string, string>
*/
public function getFallbackDirsPsr4()
{
return $this->fallbackDirsPsr4;
}

/**
* @return string[] Array of classname => path
* @psalm-var array<string, string>
*/
public function getClassMap()
{
return $this->classMap;
}

/**
* @param array $classMap Class to filename map
* @param string[] $classMap Class to filename map
* @psalm-param array<string, string> $classMap
*
* @return void
*/
public function addClassMap(array $classMap)
{
Expand All @@ -111,9 +175,11 @@ public function addClassMap(array $classMap)
* Registers a set of PSR-0 directories for a given prefix, either
* appending or prepending to the ones previously set for this prefix.
*
* @param string $prefix The prefix
* @param array|string $paths The PSR-0 root directories
* @param bool $prepend Whether to prepend the directories
* @param string $prefix The prefix
* @param string[]|string $paths The PSR-0 root directories
* @param bool $prepend Whether to prepend the directories
*
* @return void
*/
public function add($prefix, $paths, $prepend = false)
{
Expand Down Expand Up @@ -156,11 +222,13 @@ public function add($prefix, $paths, $prepend = false)
* Registers a set of PSR-4 directories for a given namespace, either
* appending or prepending to the ones previously set for this namespace.
*
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param array|string $paths The PSR-4 base directories
* @param bool $prepend Whether to prepend the directories
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param string[]|string $paths The PSR-4 base directories
* @param bool $prepend Whether to prepend the directories
*
* @throws \InvalidArgumentException
*
* @return void
*/
public function addPsr4($prefix, $paths, $prepend = false)
{
Expand Down Expand Up @@ -204,8 +272,10 @@ public function addPsr4($prefix, $paths, $prepend = false)
* Registers a set of PSR-0 directories for a given prefix,
* replacing any others previously set for this prefix.
*
* @param string $prefix The prefix
* @param array|string $paths The PSR-0 base directories
* @param string $prefix The prefix
* @param string[]|string $paths The PSR-0 base directories
*
* @return void
*/
public function set($prefix, $paths)
{
Expand All @@ -220,10 +290,12 @@ public function set($prefix, $paths)
* Registers a set of PSR-4 directories for a given namespace,
* replacing any others previously set for this namespace.
*
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param array|string $paths The PSR-4 base directories
* @param string $prefix The prefix/namespace, with trailing '\\'
* @param string[]|string $paths The PSR-4 base directories
*
* @throws \InvalidArgumentException
*
* @return void
*/
public function setPsr4($prefix, $paths)
{
Expand All @@ -243,6 +315,8 @@ public function setPsr4($prefix, $paths)
* Turns on searching the include path for class files.
*
* @param bool $useIncludePath
*
* @return void
*/
public function setUseIncludePath($useIncludePath)
{
Expand All @@ -265,6 +339,8 @@ public function getUseIncludePath()
* that have not been registered with the class map.
*
* @param bool $classMapAuthoritative
*
* @return void
*/
public function setClassMapAuthoritative($classMapAuthoritative)
{
Expand All @@ -285,6 +361,8 @@ public function isClassMapAuthoritative()
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
*
* @param string|null $apcuPrefix
*
* @return void
*/
public function setApcuPrefix($apcuPrefix)
{
Expand All @@ -305,6 +383,8 @@ public function getApcuPrefix()
* Registers this instance as an autoloader.
*
* @param bool $prepend Whether to prepend the autoloader or not
*
* @return void
*/
public function register($prepend = false)
{
Expand All @@ -324,6 +404,8 @@ public function register($prepend = false)

/**
* Unregisters this instance as an autoloader.
*
* @return void
*/
public function unregister()
{
Expand Down Expand Up @@ -403,6 +485,11 @@ public static function getRegisteredLoaders()
return self::$registeredLoaders;
}

/**
* @param string $class
* @param string $ext
* @return string|false
*/
private function findFileWithExtension($class, $ext)
{
// PSR-4 lookup
Expand Down Expand Up @@ -474,6 +561,10 @@ private function findFileWithExtension($class, $ext)
* Scope isolated include.
*
* Prevents access to $this/self from included files.
*
* @param string $file
* @return void
* @private
*/
function includeFile($file)
{
Expand Down
12 changes: 6 additions & 6 deletions apps/accessibility/composer/composer/InstalledVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
*
* To require it's presence, you can require `composer-runtime-api ^2.0`
* To require its presence, you can require `composer-runtime-api ^2.0`
*/
class InstalledVersions
{
Expand Down Expand Up @@ -228,7 +228,7 @@ public static function getInstallPath($packageName)

/**
* @return array
* @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}
* @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
*/
public static function getRootPackage()
{
Expand All @@ -242,7 +242,7 @@ public static function getRootPackage()
*
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
* @return array[]
* @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}
* @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
*/
public static function getRawData()
{
Expand All @@ -265,7 +265,7 @@ public static function getRawData()
* Returns the raw data of all installed.php which are currently loaded for custom implementations
*
* @return array[]
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
*/
public static function getAllRawData()
{
Expand All @@ -288,7 +288,7 @@ public static function getAllRawData()
* @param array[] $data A vendor/composer/installed.php data set
* @return void
*
* @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>} $data
* @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
*/
public static function reload($data)
{
Expand All @@ -298,7 +298,7 @@ public static function reload($data)

/**
* @return array[]
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
*/
private static function getInstalled()
{
Expand Down
4 changes: 2 additions & 2 deletions apps/accessibility/composer/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../',
'aliases' => array(),
'reference' => 'fa56c13484afa1baf908b93ed5b6990c6a0e9ad6',
'reference' => 'dbf7905149222115a2cd0334efcf8c93afa8683e',
'name' => '__root__',
'dev' => false,
),
Expand All @@ -16,7 +16,7 @@
'type' => 'library',
'install_path' => __DIR__ . '/../',
'aliases' => array(),
'reference' => 'fa56c13484afa1baf908b93ed5b6990c6a0e9ad6',
'reference' => 'dbf7905149222115a2cd0334efcf8c93afa8683e',
'dev_requirement' => false,
),
),
Expand Down
Loading

0 comments on commit 72ff1b5

Please sign in to comment.