Finish removing MarcW RSS writer components.

This commit is contained in:
Buster Neece 2024-04-21 09:52:28 -05:00
parent d03dc1f277
commit f12b3c0da2
No known key found for this signature in database
2 changed files with 0 additions and 31 deletions

View File

@ -14,8 +14,6 @@ use App\Http\Response;
use App\Http\ServerRequest;
use App\Xml\Writer;
use Carbon\CarbonImmutable;
use DateTime;
use MarcW\RssWriter\Extension\Core\Channel as RssChannel;
use Psr\Http\Message\ResponseInterface;
final class PodcastFeedAction implements SingleActionInterface
@ -38,10 +36,6 @@ final class PodcastFeedAction implements SingleActionInterface
$podcast = $request->getPodcast();
$channel = new RssChannel();
$channel->setTtl(5);
$channel->setLastBuildDate(new DateTime());
// Fetch podcast API feed.
$podcastApi = $this->podcastApiGenerator->__invoke($podcast, $request);

View File

@ -1,25 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Rss;
use MarcW\RssWriter\WriterRegistererInterface;
/**
* Placeholder class to write the Podcast namespace for PSP-1 compliance.
*/
class PodcastNamespaceWriter implements WriterRegistererInterface
{
public function getRegisteredWriters(): array
{
return [];
}
public function getRegisteredNamespaces(): array
{
return [
'podcast' => 'https://podcastindex.org/namespace/1.0',
];
}
}