Skip to content

Commit fae8e80

Browse files
author
ahmard
committed
RunningServer::logOutputToConsole() usage added to README
1 parent da88561 commit fae8e80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ use PHPServer\BuiltIn\Server;
1616

1717
Server::create('127.0.0.1', '9900')
1818
->setDocumentRoot(__DIR__)
19-
->start();
19+
->start()
20+
->logOutputToConsole();
2021
```
2122

2223
- Route request to single entry file
@@ -57,5 +58,6 @@ $handler = function (RequestInterface $request) {
5758

5859
Server::create('127.0.0.1', 9001)
5960
->onRequest($handler)
60-
->start();
61+
->start()
62+
->logOutputToConsole();
6163
```

0 commit comments

Comments
 (0)