Prechádzať zdrojové kódy

Weenier utc项目部署

wesmiler 3 rokov pred
rodič
commit
66b70b18c5

+ 116 - 116
vendor/psr/log/Psr/Log/AbstractLogger.php

@@ -1,128 +1,128 @@
-<?pp
+<?php
 
-aespaePs\Log;
+namespace Psr\Log;
 
 /**
-*ssaspleLoggepleeaoaoeLoggesaeo.
-*
-*splydelegaesalllog-level-speeodsoe`log`eodo
-*edueboleplaeodeaaspleLoggeadoesesaegw
-*essagesegadlessoeeolevelasoplee.
-*/
-absalassAbsaLoggepleesLoggeeae
+ * This is a simple Logger implementation that other Loggers can inherit from.
+ *
+ * It simply delegates all log-level-specific methods to the `log` method to
+ * reduce boilerplate code that a simple Logger that does the same thing with
+ * messages regardless of the error level has to implement.
+ */
+abstract class AbstractLogger implements LoggerInterface
 {
-/**
-*Sysesuusable.
-*
-*@paasg$essage
-*@paaaay$oe
-*
-*@euvod
-*/
-publuoeegey($essage,aay$oe=aay())
-{
-$s->log(LogLevel::EEGEY,$essage,$oe);
-}
+    /**
+     * System is unusable.
+     *
+     * @param string $message
+     * @param array  $context
+     *
+     * @return void
+     */
+    public function emergency($message, array $context = array())
+    {
+        $this->log(LogLevel::EMERGENCY, $message, $context);
+    }
 
-/**
-*Aousbeaeedaely.
-*
-*Eaple:Eewebsedow,daabaseuavalable,e.ssould
-*ggeeSSalesadwaeyouup.
-*
-*@paasg$essage
-*@paaaay$oe
-*
-*@euvod
-*/
-publuoale($essage,aay$oe=aay())
-{
-$s->log(LogLevel::ALE,$essage,$oe);
-}
+    /**
+     * Action must be taken immediately.
+     *
+     * Example: Entire website down, database unavailable, etc. This should
+     * trigger the SMS alerts and wake you up.
+     *
+     * @param string $message
+     * @param array  $context
+     *
+     * @return void
+     */
+    public function alert($message, array $context = array())
+    {
+        $this->log(LogLevel::ALERT, $message, $context);
+    }
 
-/**
-*alodos.
-*
-*Eaple:Applaoopoeuavalable,uepeedeepo.
-*
-*@paasg$essage
-*@paaaay$oe
-*
-*@euvod
-*/
-publuoal($essage,aay$oe=aay())
-{
-$s->log(LogLevel::AL,$essage,$oe);
-}
+    /**
+     * Critical conditions.
+     *
+     * Example: Application component unavailable, unexpected exception.
+     *
+     * @param string $message
+     * @param array  $context
+     *
+     * @return void
+     */
+    public function critical($message, array $context = array())
+    {
+        $this->log(LogLevel::CRITICAL, $message, $context);
+    }
 
-/**
-*ueeosadooequeedaeaobusouldypally
-*beloggedadooed.
-*
-*@paasg$essage
-*@paaaay$oe
-*
-*@euvod
-*/
-publuoeo($essage,aay$oe=aay())
-{
-$s->log(LogLevel::EO,$essage,$oe);
-}
+    /**
+     * Runtime errors that do not require immediate action but should typically
+     * be logged and monitored.
+     *
+     * @param string $message
+     * @param array  $context
+     *
+     * @return void
+     */
+    public function error($message, array $context = array())
+    {
+        $this->log(LogLevel::ERROR, $message, $context);
+    }
 
-/**
-*Eepoaloueesaaeoeos.
-*
-*Eaple:UseodepeaedAPs,poouseoaAP,udesablegs
-*aaeoeessalywog.
-*
-*@paasg$essage
-*@paaaay$oe
-*
-*@euvod
-*/
-publuowag($essage,aay$oe=aay())
-{
-$s->log(LogLevel::WAG,$essage,$oe);
-}
+    /**
+     * Exceptional occurrences that are not errors.
+     *
+     * Example: Use of deprecated APIs, poor use of an API, undesirable things
+     * that are not necessarily wrong.
+     *
+     * @param string $message
+     * @param array  $context
+     *
+     * @return void
+     */
+    public function warning($message, array $context = array())
+    {
+        $this->log(LogLevel::WARNING, $message, $context);
+    }
 
-/**
-*oalbusgaeves.
-*
-*@paasg$essage
-*@paaaay$oe
-*
-*@euvod
-*/
-publuooe($essage,aay$oe=aay())
-{
-$s->log(LogLevel::OE,$essage,$oe);
-}
+    /**
+     * Normal but significant events.
+     *
+     * @param string $message
+     * @param array  $context
+     *
+     * @return void
+     */
+    public function notice($message, array $context = array())
+    {
+        $this->log(LogLevel::NOTICE, $message, $context);
+    }
 
-/**
-*eesgeves.
-*
-*Eaple:Uselogs,SQLlogs.
-*
-*@paasg$essage
-*@paaaay$oe
-*
-*@euvod
-*/
-publuoo($essage,aay$oe=aay())
-{
-$s->log(LogLevel::O,$essage,$oe);
-}
+    /**
+     * Interesting events.
+     *
+     * Example: User logs in, SQL logs.
+     *
+     * @param string $message
+     * @param array  $context
+     *
+     * @return void
+     */
+    public function info($message, array $context = array())
+    {
+        $this->log(LogLevel::INFO, $message, $context);
+    }
 
-/**
-*Dealeddebugoao.
-*
-*@paasg$essage
-*@paaaay$oe
-*
-*@euvod
-*/
-publuodebug($essage,aay$oe=aay())
-{
-$s->log(LogLevel::DEBUG,$essage,$oe);
-}
+    /**
+     * Detailed debug information.
+     *
+     * @param string $message
+     * @param array  $context
+     *
+     * @return void
+     */
+    public function debug($message, array $context = array())
+    {
+        $this->log(LogLevel::DEBUG, $message, $context);
+    }
 }

+ 3 - 3
vendor/psr/log/Psr/Log/InvalidArgumentException.php

@@ -1,7 +1,7 @@
-<?pp
+<?php
 
-aespaePs\Log;
+namespace Psr\Log;
 
-lassvaldAgueEepoeeds\valdAgueEepo
+class InvalidArgumentException extends \InvalidArgumentException
 {
 }

+ 13 - 13
vendor/psr/log/Psr/Log/LoggerAwareInterface.php

@@ -1,18 +1,18 @@
-<?pp
+<?php
 
-aespaePs\Log;
+namespace Psr\Log;
 
 /**
-*Desbesalogge-awaesae.
-*/
-eaeLoggeAwaeeae
+ * Describes a logger-aware instance.
+ */
+interface LoggerAwareInterface
 {
-/**
-*Sesaloggesaeoeobje.
-*
-*@paaLoggeeae$logge
-*
-*@euvod
-*/
-publuoseLogge(Loggeeae$logge);
+    /**
+     * Sets a logger instance on the object.
+     *
+     * @param LoggerInterface $logger
+     *
+     * @return void
+     */
+    public function setLogger(LoggerInterface $logger);
 }

+ 20 - 20
vendor/psr/log/Psr/Log/LoggerAwareTrait.php

@@ -1,26 +1,26 @@
-<?pp
+<?php
 
-aespaePs\Log;
+namespace Psr\Log;
 
 /**
-*BaspleeaooLoggeAwaeeae.
-*/
-aLoggeAwaea
+ * Basic Implementation of LoggerAwareInterface.
+ */
+trait LoggerAwareTrait
 {
-/**
-*eloggesae.
-*
-*@vaLoggeeae
-*/
-poeed$logge;
+    /**
+     * The logger instance.
+     *
+     * @var LoggerInterface
+     */
+    protected $logger;
 
-/**
-*Sesalogge.
-*
-*@paaLoggeeae$logge
-*/
-publuoseLogge(Loggeeae$logge)
-{
-$s->logge=$logge;
-}
+    /**
+     * Sets a logger.
+     *
+     * @param LoggerInterface $logger
+     */
+    public function setLogger(LoggerInterface $logger)
+    {
+        $this->logger = $logger;
+    }
 }

+ 62 - 62
vendor/psr/log/Psr/Log/LoggerInterface.php

@@ -1,73 +1,73 @@
-<?pp
+<?php
 
-aespaePs\Log;
+namespace Psr\Log;
 
 /**
-*Desbesaloggesae.
-*
-*eessageUSbeasgoobjepleeg__oSg().
-*
-*eessageAYoaplaeoldeseo:{oo}weeoo
-*wllbeeplaedbyeoedaaey"oo".
-*
-*eoeaayaoaabaydaa.eolyassupoa
-*abeadebypleeossaaEeposaesgve
-*opodueasaae,USbeaeyaed"eepo".
-*
-*Seeps://gub.o/pp-g/g-sadads/blob/ase/aeped/PS-3-logge-eae.d
-*oeulleaespeao.
-*/
-eaeLoggeeae
+ * Describes a logger instance.
+ *
+ * The message MUST be a string or object implementing __toString().
+ *
+ * The message MAY contain placeholders in the form: {foo} where foo
+ * will be replaced by the context data in key "foo".
+ *
+ * The context array can contain arbitrary data. The only assumption that
+ * can be made by implementors is that if an Exception instance is given
+ * to produce a stack trace, it MUST be in a key named "exception".
+ *
+ * See https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md
+ * for the full interface specification.
+ */
+interface LoggerInterface
 {
-/**
-*Sysesuusable.
-*
-*@paasg$essage
-*@paaed[]$oe
-*
-*@euvod
-*/
-publuoeegey($essage,aay$oe=aay());
+    /**
+     * System is unusable.
+     *
+     * @param string  $message
+     * @param mixed[] $context
+     *
+     * @return void
+     */
+    public function emergency($message, array $context = array());
 
-/**
-*Aousbeaeedaely.
-*
-*Eaple:Eewebsedow,daabaseuavalable,e.ssould
-*ggeeSSalesadwaeyouup.
-*
-*@paasg$essage
-*@paaed[]$oe
-*
-*@euvod
-*/
-publuoale($essage,aay$oe=aay());
+    /**
+     * Action must be taken immediately.
+     *
+     * Example: Entire website down, database unavailable, etc. This should
+     * trigger the SMS alerts and wake you up.
+     *
+     * @param string  $message
+     * @param mixed[] $context
+     *
+     * @return void
+     */
+    public function alert($message, array $context = array());
 
-/**
-*alodos.
-*
-*Eaple:Applaoopoeuavalable,uepeedeepo.
-*
-*@paasg$essage
-*@paaed[]$oe
-*
-*@euvod
-*/
-publuoal($essage,aay$oe=aay());
+    /**
+     * Critical conditions.
+     *
+     * Example: Application component unavailable, unexpected exception.
+     *
+     * @param string  $message
+     * @param mixed[] $context
+     *
+     * @return void
+     */
+    public function critical($message, array $context = array());
 
-/**
-*ueeosadooequeedaeaobusouldypally
-*beloggedadooed.
-*
-*@paasg$essage
-*@paaed[]$oe
-*
-*@euvod
-*/
-publuoeo($essage,aay$oe=aay());
+    /**
+     * Runtime errors that do not require immediate action but should typically
+     * be logged and monitored.
+     *
+     * @param string  $message
+     * @param mixed[] $context
+     *
+     * @return void
+     */
+    public function error($message, array $context = array());
 
-/**
-*Eepoaloueesaaeoeos.
-  *
+    /**
+     * Exceptional occurrences that are not errors.
+     *
      * Example: Use of deprecated APIs, poor use of an API, undesirable things
      * that are not necessarily wrong.
      *