src/package/Support/jasonlewis/resource-watcher/src/JasonLewis/ResourceWatcher/Listener.php
public function on($event, Closure $callback)
    {
        if (!in_array($event, ['*', 'modify', 'delete', 'create'])) {
            throw new RuntimeException('Could not bind to unknown event '.$event);
        }

        $this->registerBinding($event, $callback);
    }
public function on($event, Closure $callback)
    {
        if (!in_array($event, ['*', 'modify', 'delete', 'create'])) {
            throw new RuntimeException('Could not bind to unknown event '.$event);
        }

        $this->registerBinding($event, $callback);
    }
public function on ( $ event , Closure $ callback ) { if ( ! in_array ( $ event , [ '*' , 'modify' , 'delete' , 'create' ] ) ) { throw new RuntimeException ( 'Could not bind to unknown event ' . $ event ) ; } $ this -> registerBinding ( $ event , $ callback ) ; }
Bind to a given event.

@param string   $event
@param \Closure $callback

@throws \RuntimeException

@return void
Bind to a given event .