src/Command/Clean.php 1 location
|
@@ 24-26 (lines=3) @@
|
| 21 |
|
public function processCommand() |
| 22 |
|
{ |
| 23 |
|
$outputDir = $this->getBuilder()->getConfig()->get('output.dir'); |
| 24 |
|
if ($this->fs->exists($this->getPath().'/'.Serve::$tmpDir.'/output')) { |
| 25 |
|
$outputDir = file_get_contents($this->getPath().'/'.Serve::$tmpDir.'/output'); |
| 26 |
|
} |
| 27 |
|
// delete output dir |
| 28 |
|
if ($this->fs->exists($this->getPath().'/'.$outputDir)) { |
| 29 |
|
$this->fs->remove($this->getPath().'/'.$outputDir); |
src/Command/CommandClean.php 1 location
|
@@ 34-36 (lines=3) @@
|
| 31 |
|
protected function execute(InputInterface $input, OutputInterface $output) |
| 32 |
|
{ |
| 33 |
|
$outputDir = $this->getBuilder($output)->getConfig()->get('output.dir'); |
| 34 |
|
if ($this->fs->exists($this->getPath() . '/' . Serve::$tmpDir . '/output')) { |
| 35 |
|
$outputDir = file_get_contents($this->getPath() . '/' . Serve::$tmpDir . '/output'); |
| 36 |
|
} |
| 37 |
|
// delete output dir |
| 38 |
|
if ($this->fs->exists($this->getPath() . '/' . $outputDir)) { |
| 39 |
|
$this->fs->remove($this->getPath() . '/' . $outputDir); |