mirror of
https://github.com/antonkomarev/github-profile-views-counter.git
synced 2026-07-29 08:42:38 -04:00
Add PDO repository (#2)
* Add PDO repository * Make file storage path configurable * Name username query property required * Add special exception class
This commit is contained in:
@@ -13,7 +13,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Komarev\GitHubProfileViewsCounter;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use Contracts\Komarev\GitHubProfileViewsCounter\InvalidPathException;
|
||||
|
||||
final class CounterImageRendererService
|
||||
{
|
||||
@@ -22,7 +22,7 @@ final class CounterImageRendererService
|
||||
public function __construct(string $sourceImagePath)
|
||||
{
|
||||
if (!file_exists($sourceImagePath)) {
|
||||
throw new InvalidArgumentException('Counter source image not found');
|
||||
throw new InvalidPathException('Counter source image not found');
|
||||
}
|
||||
|
||||
$this->sourceImagePath = $sourceImagePath;
|
||||
|
||||
Reference in New Issue
Block a user