1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-06 07:29:15 +00:00

update autoloader to consider namespaces for third party libraries: placed and loaded from vendor/namespace/classpath.php

update readability to a newer implementation based on Readability.js (https://github.com/andreskrey/readability.php)
add vendor/Psr/Log interface required for the above
This commit is contained in:
Andrew Dolgov
2018-06-20 14:58:09 +03:00
parent d00d515320
commit 2aaefbfa54
30 changed files with 3494 additions and 19 deletions

28
vendor/Psr/Log/NullLogger.php vendored Normal file
View File

@@ -0,0 +1,28 @@
<?php
namespace Psr\Log;
/**
* This Logger can be used to avoid conditional log calls.
*
* Logging should always be optional, and if no logger is provided to your
* library creating a NullLogger instance to have something to throw logs at
* is a good way to avoid littering your code with `if ($this->logger) { }`
* blocks.
*/
class NullLogger extends AbstractLogger
{
/**
* Logs with an arbitrary level.
*
* @param mixed $level
* @param string $message
* @param array $context
*
* @return void
*/
public function log($level, $message, array $context = array())
{
// noop
}
}