/** * If we group is deleted we need to remove the folder */ public function onAfterDelete() { $fs = new Filesystem(); $path = $this->getFolderPath(); if (isset($path) && $fs->isDir($path)) { $fs->deleteDir($path); } }
/** * If we group is deleted we need to remove the folder */ public function onAfterDelete() { $fs = new Filesystem(); $path = $this->getFolderPath(); if (isset($path) && $fs->isDir($path)) { $fs->deleteDir($path); } }