@@ 117-124 (lines=8) @@ | ||
114 | $input->getOption('port') |
|
115 | ); |
|
116 | ||
117 | if ($watch) { |
|
118 | $httpServer->addPeriodicTimer(1, function () use ($sourceSet) { |
|
119 | clearstatcache(); |
|
120 | $sourceSet->reset(); |
|
121 | ||
122 | $this->sculpin->run($this->compositeDataSource, $sourceSet); |
|
123 | }); |
|
124 | } |
|
125 | ||
126 | $httpServer->run(); |
|
127 | } else { |
|
@@ 127-137 (lines=11) @@ | ||
124 | } |
|
125 | ||
126 | $httpServer->run(); |
|
127 | } else { |
|
128 | do { |
|
129 | $this->sculpin->run($this->compositeDataSource, $sourceSet); |
|
130 | ||
131 | if ($watch) { |
|
132 | sleep(2); |
|
133 | clearstatcache(); |
|
134 | $sourceSet->reset(); |
|
135 | } |
|
136 | } while ($watch); |
|
137 | } |
|
138 | } |
|
139 | ||
140 | private function clean(OutputInterface $output, string $dir) |