1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-21 21:15:11 +02:00

Rename method

This commit is contained in:
Oliver Vogel
2025-06-21 16:00:22 +02:00
parent 8956fe6aab
commit ec2d50889e
3 changed files with 4 additions and 4 deletions

View File

@@ -172,7 +172,7 @@ abstract class AbstractDecoder implements DecoderInterface
} }
if (!@is_file($path)) { if (!@is_file($path)) {
throw new DecoderException("File ('" . $basename . "') not found."); throw new DecoderException("File ('" . $basename . "') not found in directory ('" . $dirname . "').");
} }
return $path; return $path;

View File

@@ -89,7 +89,7 @@ final class ImageManager implements ImageManagerInterface
* *
* @see ImageManagerInterface::create() * @see ImageManagerInterface::create()
*/ */
public function createFromFilePath(string $path): ImageInterface public function createFromPath(string $path): ImageInterface
{ {
return $this->driver->handleInput($path, [FilePathImageDecoder::class]); return $this->driver->handleInput($path, [FilePathImageDecoder::class]);
} }

View File

@@ -24,7 +24,7 @@ interface ImageManagerInterface
* *
* @throws DecoderException * @throws DecoderException
*/ */
public function createFromFilePath(string $path): ImageInterface; public function createFromPath(string $path): ImageInterface;
/** /**
* Create new image instance from given image binary data * Create new image instance from given image binary data