eee
This commit is contained in:
@@ -99,7 +99,6 @@ class HotReload extends AbstractProcess
|
|||||||
*/
|
*/
|
||||||
public function readFile(string $directory): void
|
public function readFile(string $directory): void
|
||||||
{
|
{
|
||||||
var_dump($directory, str_ends_with($directory, '.php'));
|
|
||||||
if (str_ends_with($directory, '.php') === true) {
|
if (str_ends_with($directory, '.php') === true) {
|
||||||
inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE);
|
inotify_add_watch($this->pipe, $directory, IN_MODIFY | IN_MOVE | IN_CREATE | IN_DELETE);
|
||||||
}
|
}
|
||||||
@@ -131,7 +130,7 @@ class HotReload extends AbstractProcess
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (is_dir($data)) {
|
if (is_dir($data)) {
|
||||||
$this->readFile($data . DIRECTORY_SEPARATOR . '*');
|
$this->readDirectory($data . DIRECTORY_SEPARATOR . '*');
|
||||||
} else {
|
} else {
|
||||||
$this->readFile($data);
|
$this->readFile($data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user