updated backend
This commit is contained in:
parent
1fea0f4fe7
commit
11521c2339
3459 changed files with 72735 additions and 168535 deletions
0
pfosten/vendor/psr/log/.gitignore
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/.gitignore
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/LICENSE
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/LICENSE
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/Psr/Log/AbstractLogger.php
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/Psr/Log/AbstractLogger.php
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/Psr/Log/InvalidArgumentException.php
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/Psr/Log/InvalidArgumentException.php
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/Psr/Log/LogLevel.php
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/Psr/Log/LogLevel.php
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/Psr/Log/LoggerAwareInterface.php
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/Psr/Log/LoggerAwareInterface.php
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
vendored
Executable file → Normal file
0
pfosten/vendor/psr/log/Psr/Log/LoggerAwareTrait.php
vendored
Executable file → Normal file
2
pfosten/vendor/psr/log/Psr/Log/LoggerInterface.php
vendored
Executable file → Normal file
2
pfosten/vendor/psr/log/Psr/Log/LoggerInterface.php
vendored
Executable file → Normal file
|
|
@ -118,6 +118,8 @@ interface LoggerInterface
|
|||
* @param array $context
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \Psr\Log\InvalidArgumentException
|
||||
*/
|
||||
public function log($level, $message, array $context = array());
|
||||
}
|
||||
|
|
|
|||
2
pfosten/vendor/psr/log/Psr/Log/LoggerTrait.php
vendored
Executable file → Normal file
2
pfosten/vendor/psr/log/Psr/Log/LoggerTrait.php
vendored
Executable file → Normal file
|
|
@ -135,6 +135,8 @@ trait LoggerTrait
|
|||
* @param array $context
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \Psr\Log\InvalidArgumentException
|
||||
*/
|
||||
abstract public function log($level, $message, array $context = array());
|
||||
}
|
||||
|
|
|
|||
2
pfosten/vendor/psr/log/Psr/Log/NullLogger.php
vendored
Executable file → Normal file
2
pfosten/vendor/psr/log/Psr/Log/NullLogger.php
vendored
Executable file → Normal file
|
|
@ -20,6 +20,8 @@ class NullLogger extends AbstractLogger
|
|||
* @param array $context
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws \Psr\Log\InvalidArgumentException
|
||||
*/
|
||||
public function log($level, $message, array $context = array())
|
||||
{
|
||||
|
|
|
|||
8
pfosten/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php
vendored
Executable file → Normal file
8
pfosten/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php
vendored
Executable file → Normal file
|
|
@ -4,6 +4,7 @@ namespace Psr\Log\Test;
|
|||
|
||||
use Psr\Log\LoggerInterface;
|
||||
use Psr\Log\LogLevel;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* Provides a base test class for ensuring compliance with the LoggerInterface.
|
||||
|
|
@ -11,7 +12,7 @@ use Psr\Log\LogLevel;
|
|||
* Implementors can extend the class and implement abstract methods to run this
|
||||
* as part of their test suite.
|
||||
*/
|
||||
abstract class LoggerInterfaceTest extends \PHPUnit_Framework_TestCase
|
||||
abstract class LoggerInterfaceTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @return LoggerInterface
|
||||
|
|
@ -101,6 +102,9 @@ abstract class LoggerInterfaceTest extends \PHPUnit_Framework_TestCase
|
|||
|
||||
public function testContextCanContainAnything()
|
||||
{
|
||||
$closed = fopen('php://memory', 'r');
|
||||
fclose($closed);
|
||||
|
||||
$context = array(
|
||||
'bool' => true,
|
||||
'null' => null,
|
||||
|
|
@ -110,6 +114,7 @@ abstract class LoggerInterfaceTest extends \PHPUnit_Framework_TestCase
|
|||
'nested' => array('with object' => new DummyTest),
|
||||
'object' => new \DateTime,
|
||||
'resource' => fopen('php://memory', 'r'),
|
||||
'closed' => $closed,
|
||||
);
|
||||
|
||||
$this->getLogger()->warning('Crazy context data', $context);
|
||||
|
|
@ -136,5 +141,6 @@ class DummyTest
|
|||
{
|
||||
public function __toString()
|
||||
{
|
||||
return 'DummyTest';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
13
pfosten/vendor/psr/log/README.md
vendored
Executable file → Normal file
13
pfosten/vendor/psr/log/README.md
vendored
Executable file → Normal file
|
|
@ -7,6 +7,13 @@ This repository holds all interfaces/classes/traits related to
|
|||
Note that this is not a logger of its own. It is merely an interface that
|
||||
describes a logger. See the specification for more details.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
```bash
|
||||
composer require psr/log
|
||||
```
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
|
|
@ -31,6 +38,12 @@ class Foo
|
|||
if ($this->logger) {
|
||||
$this->logger->info('Doing work');
|
||||
}
|
||||
|
||||
try {
|
||||
$this->doSomethingElse();
|
||||
} catch (Exception $exception) {
|
||||
$this->logger->error('Oh no!', array('exception' => $exception));
|
||||
}
|
||||
|
||||
// do something useful
|
||||
}
|
||||
|
|
|
|||
2
pfosten/vendor/psr/log/composer.json
vendored
Executable file → Normal file
2
pfosten/vendor/psr/log/composer.json
vendored
Executable file → Normal file
|
|
@ -20,7 +20,7 @@
|
|||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.0.x-dev"
|
||||
"dev-master": "1.1.x-dev"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue