/** * {@inheritdoc} */ public function log($message) { return $this->subject->log($message); }
/** * Removes deployment configuration * * @return void */ private function deleteDeploymentConfig() { $configDir = $this->filesystem->getDirectoryWrite(DirectoryList::CONFIG); $file = 'config.php'; $absolutePath = $configDir->getAbsolutePath($file); if (!$configDir->isFile($file)) { $this->log->log("The file '{$absolutePath}' doesn't exist - skipping cleanup"); return; } try { $this->log->log($absolutePath); $configDir->delete($file); } catch (FilesystemException $e) { $this->log->log($e->getMessage()); } }
/** * Include file by path * This method should perform only file inclusion. * Implemented to prevent possibility of changing important and used variables * inside the setup model while installing * * @param string $fileName * @return mixed */ private function includeFile($fileName) { $this->logger->log("Include {$fileName}"); return include $fileName; }