File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 21
21
use React \EventLoop \Loop ;
22
22
use Symfony \Contracts \EventDispatcher \EventDispatcherInterface ;
23
23
24
+ use const SIGINT ;
25
+
24
26
class Server
25
27
{
26
28
private INotifyWatcher $ watcher ;
@@ -38,7 +40,8 @@ public function __construct(
38
40
$ logger ->info ('Shutting down server... ' );
39
41
$ loop ->stop ();
40
42
$ logger ->info ('Server stopped ' );
41
- exit (0 );
43
+
44
+ exit (0 ); // phpcs:ignore
42
45
});
43
46
}
44
47
Original file line number Diff line number Diff line change 18
18
use RuntimeException ;
19
19
20
20
use function inotify_add_watch ;
21
+ use function inotify_init ;
21
22
use function inotify_read ;
22
23
use function stream_set_blocking ;
23
24
use function var_dump ;
24
25
25
26
use const DIRECTORY_SEPARATOR ;
27
+ use const IN_CLOSE_WRITE ;
28
+ use const IN_CREATE ;
29
+ use const IN_DELETE ;
30
+ use const IN_MODIFY ;
26
31
27
32
class INotifyWatcher
28
33
{
You can’t perform that action at this time.
0 commit comments