Skip to content

Commit

Permalink
Update composer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Feb 12, 2021
1 parent 25ac46b commit 8870cb2
Show file tree
Hide file tree
Showing 9 changed files with 297 additions and 16 deletions.
Empty file modified .php_cs
100755 → 100644
Empty file.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
}
],
"require": {
"getkirby/composer-installer": "^1.1"
"getkirby/composer-installer": "^1.2.0"
},
"config": {
"optimize-autoloader": true
Expand All @@ -23,7 +23,6 @@
}
},
"scripts": {
"analyze": "phpstan analyse",
"fix": "php-cs-fixer fix --config .php_cs"
}
}
30 changes: 20 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
*
* @author Fabien Potencier <[email protected]>
* @author Jordi Boggiano <[email protected]>
* @see http://www.php-fig.org/psr/psr-0/
* @see http://www.php-fig.org/psr/psr-4/
* @see https://www.php-fig.org/psr/psr-0/
* @see https://www.php-fig.org/psr/psr-4/
*/
class ClassLoader
{
Expand All @@ -60,7 +60,7 @@ class ClassLoader
public function getPrefixes()
{
if (!empty($this->prefixesPsr0)) {
return call_user_func_array('array_merge', $this->prefixesPsr0);
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
}

return array();
Expand Down
218 changes: 218 additions & 0 deletions vendor/composer/InstalledVersions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,218 @@
<?php

namespace Composer;

use Composer\Semver\VersionParser;






class InstalledVersions
{
private static $installed = array (
'root' =>
array (
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'aliases' =>
array (
),
'reference' => '25ac46be1a6301420d0d58a7c649bfdb1ca9c2e7',
'name' => 'getkirby/kql',
),
'versions' =>
array (
'getkirby/composer-installer' =>
array (
'pretty_version' => '1.2.1',
'version' => '1.2.1.0',
'aliases' =>
array (
),
'reference' => 'c98ece30bfba45be7ce457e1102d1b169d922f3d',
),
'getkirby/kql' =>
array (
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'aliases' =>
array (
),
'reference' => '25ac46be1a6301420d0d58a7c649bfdb1ca9c2e7',
),
),
);







public static function getInstalledPackages()
{
return array_keys(self::$installed['versions']);
}









public static function isInstalled($packageName)
{
return isset(self::$installed['versions'][$packageName]);
}














public static function satisfies(VersionParser $parser, $packageName, $constraint)
{
$constraint = $parser->parseConstraints($constraint);
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));

return $provided->matches($constraint);
}










public static function getVersionRanges($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}

$ranges = array();
if (isset(self::$installed['versions'][$packageName]['pretty_version'])) {
$ranges[] = self::$installed['versions'][$packageName]['pretty_version'];
}
if (array_key_exists('aliases', self::$installed['versions'][$packageName])) {
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['aliases']);
}
if (array_key_exists('replaced', self::$installed['versions'][$packageName])) {
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['replaced']);
}
if (array_key_exists('provided', self::$installed['versions'][$packageName])) {
$ranges = array_merge($ranges, self::$installed['versions'][$packageName]['provided']);
}

return implode(' || ', $ranges);
}





public static function getVersion($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}

if (!isset(self::$installed['versions'][$packageName]['version'])) {
return null;
}

return self::$installed['versions'][$packageName]['version'];
}





public static function getPrettyVersion($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}

if (!isset(self::$installed['versions'][$packageName]['pretty_version'])) {
return null;
}

return self::$installed['versions'][$packageName]['pretty_version'];
}





public static function getReference($packageName)
{
if (!isset(self::$installed['versions'][$packageName])) {
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
}

if (!isset(self::$installed['versions'][$packageName]['reference'])) {
return null;
}

return self::$installed['versions'][$packageName]['reference'];
}





public static function getRootPackage()
{
return self::$installed['root'];
}







public static function getRawData()
{
return self::$installed;
}



















public static function reload($data)
{
self::$installed = $data;
}
}
9 changes: 9 additions & 0 deletions vendor/composer/autoload_classmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,39 @@
$baseDir = dirname($vendorDir);

return array(
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
'Kirby\\ComposerInstaller\\CmsInstaller' => $vendorDir . '/getkirby/composer-installer/src/ComposerInstaller/CmsInstaller.php',
'Kirby\\ComposerInstaller\\Installer' => $vendorDir . '/getkirby/composer-installer/src/ComposerInstaller/Installer.php',
'Kirby\\ComposerInstaller\\Plugin' => $vendorDir . '/getkirby/composer-installer/src/ComposerInstaller/Plugin.php',
'Kirby\\ComposerInstaller\\PluginInstaller' => $vendorDir . '/getkirby/composer-installer/src/ComposerInstaller/PluginInstaller.php',
'Kirby\\Kql\\Help' => $baseDir . '/src/Kql/Help.php',
'Kirby\\Kql\\Interceptor' => $baseDir . '/src/Kql/Interceptor.php',
'Kirby\\Kql\\Interceptors\\Cms\\App' => $baseDir . '/src/Kql/Interceptors/Cms/App.php',
'Kirby\\Kql\\Interceptors\\Cms\\Block' => $baseDir . '/src/Kql/Interceptors/Cms/Block.php',
'Kirby\\Kql\\Interceptors\\Cms\\Blocks' => $baseDir . '/src/Kql/Interceptors/Cms/Blocks.php',
'Kirby\\Kql\\Interceptors\\Cms\\Blueprint' => $baseDir . '/src/Kql/Interceptors/Cms/Blueprint.php',
'Kirby\\Kql\\Interceptors\\Cms\\Collection' => $baseDir . '/src/Kql/Interceptors/Cms/Collection.php',
'Kirby\\Kql\\Interceptors\\Cms\\Content' => $baseDir . '/src/Kql/Interceptors/Cms/Content.php',
'Kirby\\Kql\\Interceptors\\Cms\\Field' => $baseDir . '/src/Kql/Interceptors/Cms/Field.php',
'Kirby\\Kql\\Interceptors\\Cms\\File' => $baseDir . '/src/Kql/Interceptors/Cms/File.php',
'Kirby\\Kql\\Interceptors\\Cms\\FileVersion' => $baseDir . '/src/Kql/Interceptors/Cms/FileVersion.php',
'Kirby\\Kql\\Interceptors\\Cms\\Files' => $baseDir . '/src/Kql/Interceptors/Cms/Files.php',
'Kirby\\Kql\\Interceptors\\Cms\\Layout' => $baseDir . '/src/Kql/Interceptors/Cms/Layout.php',
'Kirby\\Kql\\Interceptors\\Cms\\LayoutColumn' => $baseDir . '/src/Kql/Interceptors/Cms/LayoutColumn.php',
'Kirby\\Kql\\Interceptors\\Cms\\LayoutColumns' => $baseDir . '/src/Kql/Interceptors/Cms/LayoutColumns.php',
'Kirby\\Kql\\Interceptors\\Cms\\Layouts' => $baseDir . '/src/Kql/Interceptors/Cms/Layouts.php',
'Kirby\\Kql\\Interceptors\\Cms\\Model' => $baseDir . '/src/Kql/Interceptors/Cms/Model.php',
'Kirby\\Kql\\Interceptors\\Cms\\Page' => $baseDir . '/src/Kql/Interceptors/Cms/Page.php',
'Kirby\\Kql\\Interceptors\\Cms\\Pages' => $baseDir . '/src/Kql/Interceptors/Cms/Pages.php',
'Kirby\\Kql\\Interceptors\\Cms\\Role' => $baseDir . '/src/Kql/Interceptors/Cms/Role.php',
'Kirby\\Kql\\Interceptors\\Cms\\Site' => $baseDir . '/src/Kql/Interceptors/Cms/Site.php',
'Kirby\\Kql\\Interceptors\\Cms\\Structure' => $baseDir . '/src/Kql/Interceptors/Cms/Structure.php',
'Kirby\\Kql\\Interceptors\\Cms\\StructureObject' => $baseDir . '/src/Kql/Interceptors/Cms/StructureObject.php',
'Kirby\\Kql\\Interceptors\\Cms\\Translation' => $baseDir . '/src/Kql/Interceptors/Cms/Translation.php',
'Kirby\\Kql\\Interceptors\\Cms\\User' => $baseDir . '/src/Kql/Interceptors/Cms/User.php',
'Kirby\\Kql\\Interceptors\\Cms\\Users' => $baseDir . '/src/Kql/Interceptors/Cms/Users.php',
'Kirby\\Kql\\Interceptors\\Interceptor' => $baseDir . '/src/Kql/Interceptors/Interceptor.php',
'Kirby\\Kql\\Interceptors\\Toolkit\\Obj' => $baseDir . '/src/Kql/Interceptors/Toolkit/Obj.php',
'Kirby\\Kql\\Kql' => $baseDir . '/src/Kql/Kql.php',
'Kirby\\Kql\\Query' => $baseDir . '/src/Kql/Query.php',
);
5 changes: 4 additions & 1 deletion vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public static function loadClassLoader($class)
}
}

/**
* @return \Composer\Autoload\ClassLoader
*/
public static function getLoader()
{
if (null !== self::$loader) {
Expand All @@ -25,7 +28,7 @@ public static function getLoader()

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';
require __DIR__ . '/autoload_static.php';

call_user_func(\Composer\Autoload\ComposerStaticInitce81ad819bd8a4fdf01799db40d8b86b::getInitializer($loader));
} else {
Expand Down
Loading

0 comments on commit 8870cb2

Please sign in to comment.