diff --git a/app/Views/Components/Button.php b/app/Views/Components/Button.php
index ad6e25a7..def8c33f 100644
--- a/app/Views/Components/Button.php
+++ b/app/Views/Components/Button.php
@@ -39,7 +39,6 @@ class Button extends Component
'warning' => 'shadow-sm text-black bg-yellow-500 hover:bg-yellow-600',
'info' => 'shadow-sm text-white bg-blue-500 hover:bg-blue-600',
'disabled' => 'shadow-sm text-black bg-gray-300 cursor-not-allowed',
- 'link' => 'text-accent-base bg-transparent underline hover:no-underline',
];
$sizeClass = [
diff --git a/modules/Platforms/Config/Services.php b/modules/Platforms/Config/Services.php
new file mode 100644
index 00000000..c9912c0c
--- /dev/null
+++ b/modules/Platforms/Config/Services.php
@@ -0,0 +1,20 @@
+getPlatforms($podcastId, $platformType);
$platformsData = $platforms->getPlatformsByType($platformType);
@@ -95,7 +94,7 @@ class PlatformModel extends Model
{
$cacheName = "podcast#{$podcastId}_platforms_{$platformType}";
if (! ($found = cache($cacheName))) {
- $platforms = new Platforms();
+ $platforms = service('platforms');
/** @var Platform[] $found */
$found = $this
@@ -134,7 +133,7 @@ class PlatformModel extends Model
{
$this->clearCache($podcastId);
- $platforms = new Platforms();
+ $platforms = service('platforms');
$platformsData = $platforms->getPlatformsByType($platformType);
diff --git a/modules/PodcastImport/Commands/PodcastImport.php b/modules/PodcastImport/Commands/PodcastImport.php
index 4e2cbe58..ffac62d3 100644
--- a/modules/PodcastImport/Commands/PodcastImport.php
+++ b/modules/PodcastImport/Commands/PodcastImport.php
@@ -22,7 +22,6 @@ use League\HTMLToMarkdown\HtmlConverter;
use Modules\Auth\Config\AuthGroups;
use Modules\Auth\Models\UserModel;
use Modules\Platforms\Models\PlatformModel;
-use Modules\Platforms\Platforms;
use Modules\PodcastImport\Entities\PodcastImportTask;
use Modules\PodcastImport\Entities\TaskStatus;
use PodcastFeed\PodcastFeed;
@@ -390,7 +389,7 @@ class PodcastImport extends BaseCommand
],
];
- $platforms = new Platforms();
+ $platforms = service('platforms');
$platformModel = new PlatformModel();
foreach ($platformTypes as $platformType) {
$platformsData = [];
diff --git a/phpstan.neon b/phpstan.neon
index 06c2565c..c1e8feec 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -39,9 +39,10 @@ parameters:
- Modules\PremiumPodcasts\Models\
additionalServices:
- CodeIgniter\Settings\Config\Services
+ - CodeIgniter\Shield\Config\Services
- Michalsn\Uuid\Config\Services
- Modules\PremiumPodcasts\Config\Services
- Modules\Media\Config\Services
- - CodeIgniter\Shield\Config\Services
+ - Modules\Platforms\Config\Services
ignoreErrors:
- '#^Call to an undefined method CodeIgniter\\Cache\\CacheInterface\:\:deleteMatching\(\)#'
diff --git a/themes/cp_admin/podcast/_platform.php b/themes/cp_admin/podcast/_platform.php
new file mode 100644
index 00000000..ffd6e0ca
--- /dev/null
+++ b/themes/cp_admin/podcast/_platform.php
@@ -0,0 +1,61 @@
+= $platform->label ?>
+