コード例 #1
0
ファイル: File.php プロジェクト: kidaa30/magento2-platformsh
 /**
  * {@inheritdoc}
  */
 public function getContent()
 {
     $content = $this->source->getContent($this);
     if (false === $content) {
         throw new File\NotFoundException("Unable to get content for '{$this->getPath()}'");
     }
     return $content;
 }
コード例 #2
0
ファイル: File.php プロジェクト: shabbirvividads/magento2
 /**
  * {@inheritdoc}
  */
 public function getContent()
 {
     return (string) $this->source->getContent($this);
 }