Skip to content

Commit

Permalink
Merge pull request #63 from empress-php/bugfix/use-null-logger
Browse files Browse the repository at this point in the history
Use NullLogger
  • Loading branch information
jakobmats committed Jun 29, 2022
2 parents 1d6452b + 00ce2d4 commit 0643211
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 53 deletions.
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
"autoload": {
"psr-4": {
"Empress\\": "src/"
},
"files": [
"src/functions.php"
]
}
},
"autoload-dev": {
"psr-4": {
Expand Down
14 changes: 0 additions & 14 deletions src/Logging/RequestLoggerInterface.php

This file was deleted.

29 changes: 0 additions & 29 deletions src/functions.php

This file was deleted.

5 changes: 2 additions & 3 deletions test/EmpressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
use Empress\ConfigurationBuilder;
use Empress\Empress;
use Empress\Exception\StartupException;
use Empress\Logging\DefaultLogger;
use function Empress\getDevNull;
use Psr\Log\NullLogger;

final class EmpressTest extends AsyncTestCase
{
Expand All @@ -21,7 +20,7 @@ public function testBootNoRoutes(): \Generator
$app = Application::create(
1234,
(new ConfigurationBuilder())
->withLogger(new DefaultLogger('', getDevNull()))
->withLogger(new NullLogger())
->build()
);
$empress = new Empress($app);
Expand Down
5 changes: 2 additions & 3 deletions test/Functional/FunctionalTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@
use Empress\Application;
use Empress\ConfigurationBuilder;
use Empress\Empress;
use Empress\Logging\DefaultLogger;
use GuzzleHttp\Psr7\Uri;
use function Empress\getDevNull;
use Psr\Log\NullLogger;

abstract class FunctionalTestCase extends AsyncTestCase
{
Expand Down Expand Up @@ -76,7 +75,7 @@ protected function getConfigurationBuilder(): ConfigurationBuilder
$configurationBuilder = new ConfigurationBuilder();

return $configurationBuilder
->withLogger(new DefaultLogger('', getDevNull()));
->withLogger(new NullLogger());
}

abstract protected function getApplication(): Application;
Expand Down

0 comments on commit 0643211

Please sign in to comment.