Skip to content

Commit

Permalink
chore: vendor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricerenck committed Aug 17, 2021
1 parent f0666d8 commit 0c717b9
Show file tree
Hide file tree
Showing 10 changed files with 766 additions and 200 deletions.
160 changes: 115 additions & 45 deletions composer.lock

Large diffs are not rendered by default.

36 changes: 36 additions & 0 deletions content/home/default.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Kommentsinbox:
kommenttype: LIKE
published: 2019-06-18 00:00:00
status: 'true'
verified: 'false'
wmsource: >
https://brid-gy.appspot.com/like/twitter/mauricehh/1140945527460290566/18647802
wmtarget: >
Expand All @@ -41,6 +42,7 @@ Kommentsinbox:
kommenttype: LIKE
published: 2019-06-18 00:00:00
status: 'true'
verified: 'false'
wmsource: >
https://brid-gy.appspot.com/like/twitter/mauricehh/1140945527460290566/536793087
wmtarget: >
Expand All @@ -60,6 +62,7 @@ Kommentsinbox:
kommenttype: LIKE
published: 2019-06-18 00:00:00
status: 'true'
verified: 'false'
wmsource: >
https://brid-gy.appspot.com/like/twitter/mauricehh/1140945527460290566/2329589923
wmtarget: >
Expand All @@ -79,6 +82,7 @@ Kommentsinbox:
kommenttype: LIKE
published: 2019-06-18 00:00:00
status: 'true'
verified: 'false'
wmsource: >
https://brid-gy.appspot.com/like/twitter/mauricehh/1140945527460290566/68618782
wmtarget: >
Expand All @@ -103,6 +107,7 @@ Kommentsinbox:
kommenttype: REPLY
published: 2019-06-18 00:00:00
status: 'true'
verified: 'false'
wmsource: >
https://brid-gy.appspot.com/comment/twitter/mauricehh/1140945527460290566/1140979522298437634
wmtarget: >
Expand All @@ -122,6 +127,7 @@ Kommentsinbox:
kommenttype: LIKE
published: 2019-06-18 00:00:00
status: 'true'
verified: 'false'
wmsource: >
https://brid-gy.appspot.com/like/twitter/mauricehh/1140945527460290566/3297914751
wmtarget: >
Expand All @@ -141,6 +147,7 @@ Kommentsinbox:
kommenttype: REPLY
published: 2019-06-18 00:00:00
status: 'true'
verified: 'false'
wmsource: >
https://brid-gy.appspot.com/comment/twitter/mauricehh/1140945527460290566/1140983436275879937
wmtarget: >
Expand All @@ -162,6 +169,7 @@ Kommentsinbox:
kommenttype: KOMMENT
published: 2020-09-03 15:45:00
status: 'true'
verified: 'false'
id: d46ceebb32712f44c8b2fc5e65537c66
spamlevel: 0
-
Expand All @@ -178,6 +186,7 @@ Kommentsinbox:
kommenttype: KOMMENT
published: 2020-11-12 11:55:00
status: 'false'
verified: 'false'
id: f247192310aaf3f56a29aa02ac2adfb1
spamlevel: 0
-
Expand All @@ -194,6 +203,7 @@ Kommentsinbox:
kommenttype: KOMMENT
published: 2020-11-12 11:55:00
status: 'false'
verified: 'false'
id: edbec17042ca6639ac38998b487cbbf9
spamlevel: 0
-
Expand All @@ -210,6 +220,7 @@ Kommentsinbox:
kommenttype: KOMMENT
published: 2020-11-12 12:00:00
status: 'false'
verified: 'false'
id: 6cb177f85ca044509d7d044ce2b64a18
spamlevel: 0
-
Expand All @@ -226,6 +237,7 @@ Kommentsinbox:
kommenttype: KOMMENT
published: 2021-01-29 17:40:00
status: 'false'
verified: 'false'
id: b1cf2163959498ee77d65ec3cdb39f60
spamlevel: 0
-
Expand All @@ -242,6 +254,7 @@ Kommentsinbox:
kommenttype: KOMMENT
published: 2021-02-03 18:20:00
status: 'false'
verified: 'false'
id: 72313eb489568acd3d49339829e06002
spamlevel: 0
-
Expand All @@ -258,6 +271,7 @@ Kommentsinbox:
kommenttype: KOMMENT
published: 2021-02-03 18:20:00
status: 'false'
verified: 'false'
id: fdc30435190e726b824677bf35ff39a5
spamlevel: 0
-
Expand All @@ -274,6 +288,7 @@ Kommentsinbox:
kommenttype: KOMMENT
published: 2021-02-03 18:20:00
status: 'true'
verified: 'false'
id: 5a15c2ae74c7a85919dbc75a4355353b
spamlevel: 0
-
Expand All @@ -290,6 +305,7 @@ Kommentsinbox:
kommenttype: KOMMENT
published: 2021-02-03 21:35:00
status: 'true'
verified: 'false'
id: ac0d141efb4817f0a3f31a73e3b19c74
spamlevel: 0
-
Expand All @@ -306,8 +322,28 @@ Kommentsinbox:
kommenttype: KOMMENT
published: 2021-02-03 22:15:00
status: 'true'
verified: 'false'
id: 86b3df29955fa2bc2385e32ad4e71c25
spamlevel: 0
-
avatar: >
https://www.gravatar.com/avatar/8b77c0a84579af62f82da07d9abedf56
author: Maurice
authorurl: ""
source: https://komments.test:8890
target: https://komments.test:8890
mentionof: https://komments.test:8890
property: KOMMENT
komment: >
Hello This is my comment, how do you
like it?
quote: ""
kommenttype: KOMMENT
published: 2021-08-17 11:05:00
status: 'false'
verified: 'false'
id: 39b5472823370a1000504201c7638c70
spamlevel: 0

----

Expand Down
44 changes: 40 additions & 4 deletions vendor/composer/ClassLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@
*
* @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
{
private $vendorDir;

// PSR-4
private $prefixLengthsPsr4 = array();
private $prefixDirsPsr4 = array();
Expand All @@ -57,10 +59,17 @@ class ClassLoader
private $missingClasses = array();
private $apcuPrefix;

private static $registeredLoaders = array();

public function __construct($vendorDir = null)
{
$this->vendorDir = $vendorDir;
}

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 Expand Up @@ -300,6 +309,17 @@ public function getApcuPrefix()
public function register($prepend = false)
{
spl_autoload_register(array($this, 'loadClass'), true, $prepend);

if (null === $this->vendorDir) {
return;
}

if ($prepend) {
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
} else {
unset(self::$registeredLoaders[$this->vendorDir]);
self::$registeredLoaders[$this->vendorDir] = $this;
}
}

/**
Expand All @@ -308,13 +328,17 @@ public function register($prepend = false)
public function unregister()
{
spl_autoload_unregister(array($this, 'loadClass'));

if (null !== $this->vendorDir) {
unset(self::$registeredLoaders[$this->vendorDir]);
}
}

/**
* Loads the given class or interface.
*
* @param string $class The name of the class
* @return bool|null True if loaded, null otherwise
* @return true|null True if loaded, null otherwise
*/
public function loadClass($class)
{
Expand All @@ -323,6 +347,8 @@ public function loadClass($class)

return true;
}

return null;
}

/**
Expand Down Expand Up @@ -367,6 +393,16 @@ public function findFile($class)
return $file;
}

/**
* Returns the currently registered loaders indexed by their corresponding vendor directories.
*
* @return self[]
*/
public static function getRegisteredLoaders()
{
return self::$registeredLoaders;
}

private function findFileWithExtension($class, $ext)
{
// PSR-4 lookup
Expand Down
Loading

0 comments on commit 0c717b9

Please sign in to comment.