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 2121use \PatternLab \Config ;
2222use \PatternLab \Console ;
2323use \PatternLab \Data ;
24+ use \PatternLab \Dispatcher ;
2425use \PatternLab \FileUtil ;
2526use \PatternLab \PatternData ;
2627use \PatternLab \Util ;
@@ -61,6 +62,12 @@ public function watch($options = array()) {
6162 // make sure a copy of the given options are saved for using when running generate
6263 $ this ->options = $ options ;
6364
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+
6471 // automatically start the auto-refresh tool
6572 // DEPRECATED
6673 /*if ($reload) {
You can’t perform that action at this time.
0 commit comments