File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ Watcher::create()
21
21
->addPath(__DIR__ . '/app')
22
22
->addPath(__DIR__ . '/views')
23
23
->onChange(function (EventInfo $eventInfo) {
24
- var_dump($eventInfo->getMask ());
24
+ var_dump($eventInfo->getWatchedItem()->getFullPath ());
25
25
});
26
26
```
27
27
@@ -36,7 +36,7 @@ Watcher::create()
36
36
->addPath(__DIR__ . '/app')
37
37
->fileShouldNotEndWith(['.php'])
38
38
->onChange(function (EventInfo $eventInfo) {
39
- var_dump($eventInfo->getMask ());
39
+ var_dump($eventInfo->getWatchedItem()->getFullPath ());
40
40
});
41
41
```
42
42
@@ -50,7 +50,7 @@ Watcher::create()
50
50
->addPath(__DIR__ . '/app')
51
51
->addExtension('php')
52
52
->onChange(function (EventInfo $eventInfo) {
53
- var_dump($eventInfo->getMask ());
53
+ var_dump($eventInfo->getWatchedItem()->getFullPath ());
54
54
});
55
55
```
56
56
@@ -68,7 +68,7 @@ require 'vendor/autoload.php';
68
68
Watcher::create()
69
69
->addPath(__DIR__ . '/app')
70
70
->onAny(function (EventInfo $eventInfo) {
71
- var_dump($eventInfo->getMask ());
71
+ var_dump($eventInfo->getWatchedItem()->getFullPath ());
72
72
});
73
73
```
74
74
You can’t perform that action at this time.
0 commit comments