public function onUpdate($old)
    {
        if (!Daemon::$process instanceof Master || (Daemon::$config->autoreload->value === 0) || !$old) {
            return;
        }

        $e = explode(';', $old);
        foreach ($e as $path) {
            Daemon::$process->fileWatcher->rmWatch($path, [Daemon::$process, 'sighup']);
        }

        $e = explode(';', $this->value);
        foreach ($e as $path) {
            Daemon::$process->fileWatcher->addWatch($path, [Daemon::$process, 'sighup']);
        }
    }
public function onUpdate($old)
    {
        if (!Daemon::$process instanceof Master || (Daemon::$config->autoreload->value === 0) || !$old) {
            return;
        }

        $e = explode(';', $old);
        foreach ($e as $path) {
            Daemon::$process->fileWatcher->rmWatch($path, [Daemon::$process, 'sighup']);
        }

        $e = explode(';', $this->value);
        foreach ($e as $path) {
            Daemon::$process->fileWatcher->addWatch($path, [Daemon::$process, 'sighup']);
        }
    }
public function onUpdate ( $ old ) { if ( ! Daemon :: $ process instanceof Master || ( Daemon :: $ config -> autoreload -> value === 0 ) || ! $ old ) { return ; } $ e = explode ( ';' , $ old ) ; foreach ( $ e as $ path ) { Daemon :: $ process -> fileWatcher -> rmWatch ( $ path , [ Daemon :: $ process , 'sighup' ] ) ; } $ e = explode ( ';' , $ this -> value ) ; foreach ( $ e as $ path ) { Daemon :: $ process -> fileWatcher -> addWatch ( $ path , [ Daemon :: $ process , 'sighup' ] ) ; } }
Called when entry is updated
@param $old
@return void
Called when entry is updated