Skip to content

Commit

Permalink
fix example in readme
Browse files Browse the repository at this point in the history
additional required argument logger was missing
  • Loading branch information
vlakarados committed Jun 8, 2018
1 parent 1386934 commit efd6c16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -43,6 +43,7 @@ use Amp\Http\Server\Request;
use Amp\Http\Server\Response;
use Amp\Http\Status;
use Amp\Socket;
use Psr\Log\NullLogger;

// Run this script, then visit http://localhost:1337/ in your browser.

Expand All @@ -56,7 +57,7 @@ Amp\Loop::run(function () {
return new Response(Status::OK, [
"content-type" => "text/plain; charset=utf-8"
], "Hello, World!");
}));
}), new NullLogger);

yield $server->start();

Expand Down

0 comments on commit efd6c16

Please sign in to comment.