Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 2a5da0f

Browse files
authored
factorisation , removing blogs (#12)
1 parent cb4b1c1 commit 2a5da0f

File tree

9 files changed

+0
-162
lines changed

9 files changed

+0
-162
lines changed

src/Command/GetDevscastLatestPostCommand.php

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/Controller/DefaultController.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,4 @@ public function index(): Response
2323
{
2424
return new RedirectResponse('https://t.me/devscast');
2525
}
26-
27-
#[Route('/hello', name: 'app_hello', methods: ['GET'])]
28-
public function hello(): Response
29-
{
30-
return new Response('Hello, World!');
31-
}
3226
}

src/Controller/WebhookController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public function devscast(Request $request): Response
3939

4040
$event = match ($event) {
4141
'contact_form_submitted' => ContactSubmittedEvent::fromArray($data),
42-
'content_created' => ContentCreatedEvent::fromArray($data),
4342
default => null
4443
};
4544

src/FeedReader.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ public function getData(string $type): array
2323
try {
2424
$feed = Reader::import(match ($type) {
2525
'podcasts' => $_ENV['DEVSCAST_PODCASTS_RSS_URL'],
26-
'posts' => $_ENV['DEVSCAST_POSTS_RSS_URL'],
2726
default => throw new \InvalidArgumentException(
2827
sprintf('Unknown %s type only (podcasts, posts) are supported', $type)
2928
)

src/Handler/Devscast/GetDevscastLatestPostHandler.php

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/Handler/StartHandler.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public function __invoke(StartCommand $command): void
3838
/about - à propos de devscast
3939
/socials - nos réseaux sociaux
4040
/rules - les règles de la communauté
41-
/posts - nos derniers articles
4241
/podcasts - nos derniers podcasts
4342
/hackernews - 10 stories de hackernews
4443
/bitcoin - le cours du bitcoin

src/Telegram/Subscriber/BotCommandSubscriber.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ public function onBotCommand(BotCommandEvent $event): void
5858
'/about' => $this->dispatchSync(new AboutCommand(message: $message)),
5959
'/socials' => $this->dispatchSync(new SocialsLinksCommand(message: $message)),
6060
'/rules' => $this->dispatchSync(new RulesCommand(message: $message)),
61-
'/posts' => $this->dispatchSync(new GetDevscastLatestPostCommand(message: $message)),
6261
'/podcasts' => $this->dispatchSync(new GetDevscastLatestPodcastCommand(message: $message)),
6362
'/hackernews' => $this->dispatchSync(new ListHackerNewsTopStoriesCommand(message: $message)),
6463
'/joieducodes' => $this->dispatchSync(new GetProgrammingMemeCommand(message: $message)),

src/Telegram/Subscriber/WebhookSubscriber.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public static function getSubscribedEvents(): array
3030
{
3131
return [
3232
// Devscast
33-
ContentCreatedEvent::class => 'onEvent',
3433
ContactSubmittedEvent::class => 'onEvent',
3534
];
3635
}

src/Webhook/Devscast/ContentCreatedEvent.php

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)