mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
Finish removing MarcW RSS writer components.
This commit is contained in:
parent
d03dc1f277
commit
f12b3c0da2
|
@ -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);
|
||||
|
||||
|
|
|
@ -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',
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user