eee
This commit is contained in:
+4
-1
@@ -29,6 +29,9 @@ class HotReload extends BaseProcess
|
|||||||
private array $dirs = [APP_PATH . 'app', APP_PATH . 'routes'];
|
private array $dirs = [APP_PATH . 'app', APP_PATH . 'routes'];
|
||||||
|
|
||||||
|
|
||||||
|
private bool $forceFile = false;
|
||||||
|
|
||||||
|
|
||||||
protected mixed $inotify = null;
|
protected mixed $inotify = null;
|
||||||
|
|
||||||
|
|
||||||
@@ -90,7 +93,7 @@ class HotReload extends BaseProcess
|
|||||||
public function process(?Process $process): void
|
public function process(?Process $process): void
|
||||||
{
|
{
|
||||||
// TODO: Implement process() method.
|
// TODO: Implement process() method.
|
||||||
if (extension_loaded('inotify')) {
|
if (!$this->forceFile && extension_loaded('inotify')) {
|
||||||
$this->onInotifyReload();
|
$this->onInotifyReload();
|
||||||
} else {
|
} else {
|
||||||
$this->onCrontabReload();
|
$this->onCrontabReload();
|
||||||
|
|||||||
Reference in New Issue
Block a user