コード例 #1
0
ファイル: Logger.php プロジェクト: shabbirvividads/magento2
 /**
  * {@inheritdoc}
  */
 public function log($message)
 {
     return $this->subject->log($message);
 }
コード例 #2
0
 /**
  * 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());
     }
 }
コード例 #3
0
 /**
  * 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;
 }