Skip to content

Commit

Permalink
factorisation , removing blogs
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzziahlukeka committed Sep 25, 2024
1 parent cb4b1c1 commit 880c0b0
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 162 deletions.
26 changes: 0 additions & 26 deletions src/Command/GetDevscastLatestPostCommand.php

This file was deleted.

6 changes: 0 additions & 6 deletions src/Controller/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,4 @@ public function index(): Response
{
return new RedirectResponse('https://t.me/devscast');
}

#[Route('/hello', name: 'app_hello', methods: ['GET'])]
public function hello(): Response
{
return new Response('Hello, World!');
}
}
1 change: 0 additions & 1 deletion src/Controller/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public function devscast(Request $request): Response

$event = match ($event) {
'contact_form_submitted' => ContactSubmittedEvent::fromArray($data),
'content_created' => ContentCreatedEvent::fromArray($data),
default => null
};

Expand Down
1 change: 0 additions & 1 deletion src/FeedReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public function getData(string $type): array
try {
$feed = Reader::import(match ($type) {
'podcasts' => $_ENV['DEVSCAST_PODCASTS_RSS_URL'],
'posts' => $_ENV['DEVSCAST_POSTS_RSS_URL'],
default => throw new \InvalidArgumentException(
sprintf('Unknown %s type only (podcasts, posts) are supported', $type)
)
Expand Down
55 changes: 0 additions & 55 deletions src/Handler/Devscast/GetDevscastLatestPostHandler.php

This file was deleted.

1 change: 0 additions & 1 deletion src/Handler/StartHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function __invoke(StartCommand $command): void
/about - à propos de devscast
/socials - nos réseaux sociaux
/rules - les règles de la communauté
/posts - nos derniers articles
/podcasts - nos derniers podcasts
/hackernews - 10 stories de hackernews
/bitcoin - le cours du bitcoin
Expand Down
1 change: 0 additions & 1 deletion src/Telegram/Subscriber/BotCommandSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public function onBotCommand(BotCommandEvent $event): void
'/about' => $this->dispatchSync(new AboutCommand(message: $message)),
'/socials' => $this->dispatchSync(new SocialsLinksCommand(message: $message)),
'/rules' => $this->dispatchSync(new RulesCommand(message: $message)),
'/posts' => $this->dispatchSync(new GetDevscastLatestPostCommand(message: $message)),
'/podcasts' => $this->dispatchSync(new GetDevscastLatestPodcastCommand(message: $message)),
'/hackernews' => $this->dispatchSync(new ListHackerNewsTopStoriesCommand(message: $message)),
'/joieducodes' => $this->dispatchSync(new GetProgrammingMemeCommand(message: $message)),
Expand Down
1 change: 0 additions & 1 deletion src/Telegram/Subscriber/WebhookSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public static function getSubscribedEvents(): array
{
return [
// Devscast
ContentCreatedEvent::class => 'onEvent',
ContactSubmittedEvent::class => 'onEvent',
];
}
Expand Down
70 changes: 0 additions & 70 deletions src/Webhook/Devscast/ContentCreatedEvent.php

This file was deleted.

0 comments on commit 880c0b0

Please sign in to comment.