src/Webcreate/Conveyor/Transporter/FileTransporter.php 1 location
|
@@ 157-163 (lines=7) @@
|
| 154 |
|
* @param bool $recursive |
| 155 |
|
* @return mixed |
| 156 |
|
*/ |
| 157 |
|
public function remove($path, $recursive = true) |
| 158 |
|
{ |
| 159 |
|
$this->dispatcher->dispatch(TransporterEvents::TRANSPORTER_REMOVE, new TransporterEvent($this, array('path' => $path))); |
| 160 |
|
|
| 161 |
|
$filesystem = new Filesystem(); |
| 162 |
|
$filesystem->remove($path); |
| 163 |
|
} |
| 164 |
|
|
| 165 |
|
/** |
| 166 |
|
* Lists files and directories |
src/Webcreate/Conveyor/Transporter/GitTransporter.php 1 location
|
@@ 246-252 (lines=7) @@
|
| 243 |
|
* @param bool $recursive |
| 244 |
|
* @return mixed |
| 245 |
|
*/ |
| 246 |
|
public function remove($path, $recursive = true) |
| 247 |
|
{ |
| 248 |
|
$this->dispatcher->dispatch(TransporterEvents::TRANSPORTER_REMOVE, new TransporterEvent($this, array('path' => $path))); |
| 249 |
|
|
| 250 |
|
$filesystem = new Filesystem(); |
| 251 |
|
$filesystem->remove($path); |
| 252 |
|
} |
| 253 |
|
|
| 254 |
|
/** |
| 255 |
|
* Lists files and directories |