mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 21:15:11 +02:00
Rename method
This commit is contained in:
@@ -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;
|
||||||
|
@@ -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]);
|
||||||
}
|
}
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user