mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-24 11:02:00 +00:00
23 lines
469 B
PHP
23 lines
469 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Entities\Podcast;
|
|
use App\Libraries\RssFeed;
|
|
use Modules\Plugins\Core\BasePlugin;
|
|
|
|
class AcmeUndeclaredHookPlugin extends BasePlugin
|
|
{
|
|
#[Override]
|
|
public function rssBeforeChannel(Podcast $podcast): void
|
|
{
|
|
$podcast->title = 'Podcast test undeclared';
|
|
}
|
|
|
|
#[Override]
|
|
public function rssAfterChannel(Podcast $podcast, RssFeed $channel): void
|
|
{
|
|
$channel->addChild('foo', 'bar');
|
|
}
|
|
}
|