public static function create($paths)
    {
        $backends = array(
            new Backend\Inotifywait($paths),
            new Backend\Fswatch($paths),
            new Backend\Watchmedo($paths),
            new Backend\Inotify($paths),
            new Backend\Poll($paths),
        );
        foreach ($backends as $b) {
            if ($b->isAvailable()) {
                $backend = $b;
                break;
            }
        }
        return $backend;
    }
public static function create($paths)
    {
        $backends = array(
            new Backend\Inotifywait($paths),
            new Backend\Fswatch($paths),
            new Backend\Watchmedo($paths),
            new Backend\Inotify($paths),
            new Backend\Poll($paths),
        );
        foreach ($backends as $b) {
            if ($b->isAvailable()) {
                $backend = $b;
                break;
            }
        }
        return $backend;
    }
public static function create ( $ paths ) { $ backends = array ( new Backend \ Inotifywait ( $ paths ) , new Backend \ Fswatch ( $ paths ) , new Backend \ Watchmedo ( $ paths ) , new Backend \ Inotify ( $ paths ) , new Backend \ Poll ( $ paths ) , ) ; foreach ( $ backends as $ b ) { if ( $ b -> isAvailable ( ) ) { $ backend = $ b ; break ; } } return $ backend ; }
Creates instance of best watcher backend for your system.
Creates instance of best watcher backend for your system .