File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff line change 1515use Psr \Http \Message \UploadedFileInterface ;
1616use 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 ;
Original file line number Diff line number Diff line change 1717use Psr \Http \Message \StreamInterface ;
1818use 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 }
You can’t perform that action at this time.
0 commit comments