This commit is contained in:
emmymayo
2025-02-05 23:15:46 +01:00
commit 7269c99357
16995 changed files with 3389680 additions and 0 deletions
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,6 @@
<?php
namespace MailPoetVendor\Psr\Cache;
if (!defined('ABSPATH')) exit;
interface CacheException
{
}
@@ -0,0 +1,12 @@
<?php
namespace MailPoetVendor\Psr\Cache;
if (!defined('ABSPATH')) exit;
interface CacheItemInterface
{
public function getKey();
public function get();
public function isHit();
public function set($value);
public function expiresAt($expiration);
public function expiresAfter($time);
}
@@ -0,0 +1,15 @@
<?php
namespace MailPoetVendor\Psr\Cache;
if (!defined('ABSPATH')) exit;
interface CacheItemPoolInterface
{
public function getItem($key);
public function getItems(array $keys = array());
public function hasItem($key);
public function clear();
public function deleteItem($key);
public function deleteItems(array $keys);
public function save(CacheItemInterface $item);
public function saveDeferred(CacheItemInterface $item);
public function commit();
}
@@ -0,0 +1,6 @@
<?php
namespace MailPoetVendor\Psr\Cache;
if (!defined('ABSPATH')) exit;
interface InvalidArgumentException extends CacheException
{
}
@@ -0,0 +1 @@
<?php
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,8 @@
<?php
namespace MailPoetVendor\Psr\Clock;
if (!defined('ABSPATH')) exit;
use DateTimeImmutable;
interface ClockInterface
{
public function now() : DateTimeImmutable;
}
@@ -0,0 +1 @@
<?php
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,6 @@
<?php
namespace MailPoetVendor\Psr\Container;
if (!defined('ABSPATH')) exit;
interface ContainerExceptionInterface
{
}
@@ -0,0 +1,9 @@
<?php
declare (strict_types=1);
namespace MailPoetVendor\Psr\Container;
if (!defined('ABSPATH')) exit;
interface ContainerInterface
{
public function get(string $id);
public function has(string $id);
}
@@ -0,0 +1,6 @@
<?php
namespace MailPoetVendor\Psr\Container;
if (!defined('ABSPATH')) exit;
interface NotFoundExceptionInterface extends ContainerExceptionInterface
{
}
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,38 @@
<?php
namespace MailPoetVendor\Psr\Log;
if (!defined('ABSPATH')) exit;
abstract class AbstractLogger implements LoggerInterface
{
public function emergency($message, array $context = array())
{
$this->log(LogLevel::EMERGENCY, $message, $context);
}
public function alert($message, array $context = array())
{
$this->log(LogLevel::ALERT, $message, $context);
}
public function critical($message, array $context = array())
{
$this->log(LogLevel::CRITICAL, $message, $context);
}
public function error($message, array $context = array())
{
$this->log(LogLevel::ERROR, $message, $context);
}
public function warning($message, array $context = array())
{
$this->log(LogLevel::WARNING, $message, $context);
}
public function notice($message, array $context = array())
{
$this->log(LogLevel::NOTICE, $message, $context);
}
public function info($message, array $context = array())
{
$this->log(LogLevel::INFO, $message, $context);
}
public function debug($message, array $context = array())
{
$this->log(LogLevel::DEBUG, $message, $context);
}
}
@@ -0,0 +1,6 @@
<?php
namespace MailPoetVendor\Psr\Log;
if (!defined('ABSPATH')) exit;
class InvalidArgumentException extends \InvalidArgumentException
{
}
@@ -0,0 +1,14 @@
<?php
namespace MailPoetVendor\Psr\Log;
if (!defined('ABSPATH')) exit;
class LogLevel
{
const EMERGENCY = 'emergency';
const ALERT = 'alert';
const CRITICAL = 'critical';
const ERROR = 'error';
const WARNING = 'warning';
const NOTICE = 'notice';
const INFO = 'info';
const DEBUG = 'debug';
}
@@ -0,0 +1,7 @@
<?php
namespace MailPoetVendor\Psr\Log;
if (!defined('ABSPATH')) exit;
interface LoggerAwareInterface
{
public function setLogger(LoggerInterface $logger);
}
@@ -0,0 +1,11 @@
<?php
namespace MailPoetVendor\Psr\Log;
if (!defined('ABSPATH')) exit;
trait LoggerAwareTrait
{
protected $logger;
public function setLogger(LoggerInterface $logger)
{
$this->logger = $logger;
}
}
@@ -0,0 +1,15 @@
<?php
namespace MailPoetVendor\Psr\Log;
if (!defined('ABSPATH')) exit;
interface LoggerInterface
{
public function emergency($message, array $context = array());
public function alert($message, array $context = array());
public function critical($message, array $context = array());
public function error($message, array $context = array());
public function warning($message, array $context = array());
public function notice($message, array $context = array());
public function info($message, array $context = array());
public function debug($message, array $context = array());
public function log($level, $message, array $context = array());
}
@@ -0,0 +1,39 @@
<?php
namespace MailPoetVendor\Psr\Log;
if (!defined('ABSPATH')) exit;
trait LoggerTrait
{
public function emergency($message, array $context = array())
{
$this->log(LogLevel::EMERGENCY, $message, $context);
}
public function alert($message, array $context = array())
{
$this->log(LogLevel::ALERT, $message, $context);
}
public function critical($message, array $context = array())
{
$this->log(LogLevel::CRITICAL, $message, $context);
}
public function error($message, array $context = array())
{
$this->log(LogLevel::ERROR, $message, $context);
}
public function warning($message, array $context = array())
{
$this->log(LogLevel::WARNING, $message, $context);
}
public function notice($message, array $context = array())
{
$this->log(LogLevel::NOTICE, $message, $context);
}
public function info($message, array $context = array())
{
$this->log(LogLevel::INFO, $message, $context);
}
public function debug($message, array $context = array())
{
$this->log(LogLevel::DEBUG, $message, $context);
}
public abstract function log($level, $message, array $context = array());
}
@@ -0,0 +1,10 @@
<?php
namespace MailPoetVendor\Psr\Log;
if (!defined('ABSPATH')) exit;
class NullLogger extends AbstractLogger
{
public function log($level, $message, array $context = array())
{
// noop
}
}
@@ -0,0 +1 @@
<?php
@@ -0,0 +1 @@
<?php
@@ -0,0 +1 @@
<?php