Skip to content

Commit 7f81fed

Browse files
committed
Update run.php example
1 parent 4051ff7 commit 7f81fed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818

1919
//$server->init(null, true); // Standalone without an event loop or ReactPHP server
2020
$server->init(); // Standalone ReactPHP server
21-
$server->setLogger(true);
22-
$server->start();
21+
$server->setLogger(true); // (Optional) Pass an instance of Psr\Log\LoggerInterface;
22+
$server->start(true); // Start the server and the event loop

0 commit comments

Comments
 (0)