public function onTerminate(CarewEvent $event) { foreach ($this->themes as $theme) { $path = $theme . '/assets/'; if (is_dir($path)) { $this->filesystem->mirror($path, $event['webDir'] . '/', null, array('override' => true)); } } }