UnreadableFileException.php 345 B

123456789101112131415161718
  1. <?php
  2. namespace League\Flysystem;
  3. use SplFileInfo;
  4. class UnreadableFileException extends Exception
  5. {
  6. public static function forFileInfo(SplFileInfo $fileInfo)
  7. {
  8. return new static(
  9. sprintf(
  10. 'Unreadable file encountered: %s',
  11. $fileInfo->getRealPath()
  12. )
  13. );
  14. }
  15. }