| 1 |
<?php |
| 2 |
|
| 3 |
declare(strict_types=1); |
| 4 |
|
| 5 |
namespace League\Flysystem; |
| 6 |
|
| 7 |
use RuntimeException; |
| 8 |
|
| 9 |
class UnableToResolveFilesystemMount extends RuntimeException implements FilesystemException |
| 10 |
{ |
| 11 |
public static function becauseTheSeparatorIsMissing(string $path): UnableToResolveFilesystemMount |
| 12 |
{ |
| 13 |
return new UnableToResolveFilesystemMount("Unable to resolve the filesystem mount because the path ($path) is missing a separator (://)."); |
| 14 |
} |
| 15 |
|
| 16 |
public static function becauseTheMountWasNotRegistered(string $mountIdentifier): UnableToResolveFilesystemMount |
| 17 |
{ |
| 18 |
return new UnableToResolveFilesystemMount("Unable to resolve the filesystem mount because the mount ($mountIdentifier) was not registered."); |
| 19 |
} |
| 20 |
} |
| 21 |
|