Skip to content

Commit f157398

Browse files
committed
rename ImageDownloaderService to GuzzleImageDownloader
1 parent ed3a413 commit f157398

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/Media/MediaServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function () use ($container) {
6262

6363
$container->addShared(
6464
ImageDownloader::class,
65-
fn () => new ImageDownloaderService(
65+
fn () => new GuzzleImageDownloader(
6666
new Client([
6767
'timeout' => $container->get('config')['media']['timeout'] ?? 30,
6868
'connect_timeout' => $container->get('config')['media']['connect_timeout'] ?? 10,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Psr\Http\Message\UploadedFileInterface;
1616
use RuntimeException;
1717

18-
final class ImageDownloaderService implements ImageDownloader
18+
final class GuzzleImageDownloader implements ImageDownloader
1919
{
2020
private const TEST_HOST = 'io.uitdatabank.local';
2121
private ClientInterface $client;

tests/Media/ImageDownloaderServiceTest.php renamed to tests/Media/GuzzleImageDownloaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Psr\Http\Message\StreamInterface;
1818
use RuntimeException;
1919

20-
final class ImageDownloaderServiceTest extends TestCase
20+
final class GuzzleImageDownloaderTest extends TestCase
2121
{
2222
private ImageDownloader $imageDownloader;
2323

@@ -31,7 +31,7 @@ public function setUp(): void
3131
{
3232
$this->client = $this->createMock(ClientInterface::class);
3333
$this->maxFileSize = 10000;
34-
$this->imageDownloader = new ImageDownloaderService($this->client, $this->maxFileSize);
34+
$this->imageDownloader = new GuzzleImageDownloader($this->client, $this->maxFileSize);
3535

3636
$this->onlineImageUrl = new Url('https://foobar.com/someImage.png');
3737
}

0 commit comments

Comments
 (0)