mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 11:37:46 +02:00
refactor(modules): extract castopod parts into a modules/ folder for a scalable HMVC structure
- create Admin, Analytics, Auth, Fediverse and Install modules in the root modules/ folder - rename ActivityPub to Fediverse
This commit is contained in:
parent
94872f2338
commit
5083cd2fda
268 changed files with 4221 additions and 2186 deletions
39
modules/Analytics/Config/Analytics.php
Normal file
39
modules/Analytics/Config/Analytics.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Analytics\Config;
|
||||
|
||||
use CodeIgniter\Config\BaseConfig;
|
||||
|
||||
class Analytics extends BaseConfig
|
||||
{
|
||||
/**
|
||||
* Gateway to analytic routes. By default, all analytics routes will be under `/analytics` path
|
||||
*/
|
||||
public string $gateway = 'analytics';
|
||||
|
||||
/**
|
||||
* --------------------------------------------------------------------
|
||||
* Route filters options
|
||||
* --------------------------------------------------------------------
|
||||
* @var array<string, string>
|
||||
*/
|
||||
public array $routeFilters = [
|
||||
'analytics-full-data' => 'permission:podcasts-view,podcast-view',
|
||||
'analytics-data' => 'permission:podcasts-view,podcast-view',
|
||||
'analytics-filtered-data' => 'permission:podcasts-view,podcast-view',
|
||||
];
|
||||
|
||||
/**
|
||||
* get the full audio file url
|
||||
*
|
||||
* @param string|string[] $audioFilePath
|
||||
*/
|
||||
public function getAudioFileUrl(string|array $audioFilePath): string
|
||||
{
|
||||
helper('media');
|
||||
|
||||
return media_base_url($audioFilePath);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue