File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 21
21
use \PatternLab \Config ;
22
22
use \PatternLab \Console ;
23
23
use \PatternLab \Data ;
24
+ use \PatternLab \Dispatcher ;
24
25
use \PatternLab \FileUtil ;
25
26
use \PatternLab \PatternData ;
26
27
use \PatternLab \Util ;
@@ -61,6 +62,12 @@ public function watch($options = array()) {
61
62
// make sure a copy of the given options are saved for using when running generate
62
63
$ this ->options = $ options ;
63
64
65
+ // set-up the Dispatcher
66
+ $ dispatcherInstance = Dispatcher::getInstance ();
67
+ $ dispatcherInstance ->dispatch ("watcher.start " );
68
+ popen ("php /Users/dmolsen/Sites/patternlab-project/dev/development-edition/vendor/pattern-lab/plugin-reload/src/PatternLab/Reload/AutoReloadServer.php " , "r " );
69
+ print "hello world " ;
70
+
64
71
// automatically start the auto-refresh tool
65
72
// DEPRECATED
66
73
/*if ($reload) {
You can’t perform that action at this time.
0 commit comments