mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-24 11:02:00 +00:00
23 lines
487 B
PHP
23 lines
487 B
PHP
![]() |
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
use App\Entities\Podcast;
|
||
|
use App\Libraries\SimpleRSSElement;
|
||
|
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, SimpleRSSElement $channel): void
|
||
|
{
|
||
|
$channel->addChild('foo', 'bar');
|
||
|
}
|
||
|
}
|