diff --git a/config/services.yaml b/config/services.yaml index b9f54d2..8098461 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -26,5 +26,5 @@ services: # add more service definitions when explicit configuration is needed # please note that last definitions always *replace* previous ones App\EventRepository: - class: App\Meetup\MeetupEventRepository + class: App\Meetup\MeetupApiEventRepository public: true diff --git a/src/Meetup/MeetupEventRepository.php b/src/Meetup/MeetupApiEventRepository.php similarity index 93% rename from src/Meetup/MeetupEventRepository.php rename to src/Meetup/MeetupApiEventRepository.php index d2a58f2..494c01e 100644 --- a/src/Meetup/MeetupEventRepository.php +++ b/src/Meetup/MeetupApiEventRepository.php @@ -6,7 +6,7 @@ use App\EventRepository; use Illuminate\Support\Collection; use Symfony\Contracts\HttpClient\HttpClientInterface; -final class MeetupEventRepository implements EventRepository +final class MeetupApiEventRepository implements EventRepository { private HttpClientInterface $client; diff --git a/tests/Meetup/MeetupEventRepositoryTest.php b/tests/Meetup/MeetupApiEventRepositoryTest.php similarity index 86% rename from tests/Meetup/MeetupEventRepositoryTest.php rename to tests/Meetup/MeetupApiEventRepositoryTest.php index 0605988..c595021 100644 --- a/tests/Meetup/MeetupEventRepositoryTest.php +++ b/tests/Meetup/MeetupApiEventRepositoryTest.php @@ -9,7 +9,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** * @group api */ -final class MeetupEventRepositoryTest extends KernelTestCase +final class MeetupApiEventRepositoryTest extends KernelTestCase { use EventRepositoryContractTest;