| 1 | <?php |
||
| 14 | class LocalUrlResolver implements ResolverInterface |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * Path prefix |
||
| 18 | * |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $prefix; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * LocalUrlResolver constructor. |
||
| 25 | * |
||
| 26 | * @param string $prefix |
||
| 27 | */ |
||
| 28 | public function __construct(string $prefix = '/storage') |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Resolves an object path to an URI. |
||
| 35 | * |
||
| 36 | * @param string $path Object path |
||
| 37 | * |
||
| 38 | * @return string |
||
| 39 | */ |
||
| 40 | public function resolve(string $path): string |
||
| 44 | } |
||
| 45 |