mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 19:17:45 +02:00
refactor(componentrenderer): update locateView using a lookupModules property in config
This commit is contained in:
parent
a95de8bab0
commit
58c8839902
3 changed files with 39 additions and 6 deletions
22
app/Config/ViewComponents.php
Normal file
22
app/Config/ViewComponents.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Config;
|
||||
|
||||
use ViewComponents\Config\ViewComponents as ViewComponentsConfig;
|
||||
|
||||
class ViewComponents extends ViewComponentsConfig
|
||||
{
|
||||
/**
|
||||
* @var array<string, string>
|
||||
*/
|
||||
public array $lookupModules = [
|
||||
APP_NAMESPACE => APPPATH,
|
||||
'Modules\Admin' => ROOTPATH . 'modules/Admin/',
|
||||
'Modules\Auth' => ROOTPATH . 'modules/Auth/',
|
||||
'Modules\Analytics' => ROOTPATH . 'modules/Analytics/',
|
||||
'Modules\Install' => ROOTPATH . 'modules/Install/',
|
||||
'Modules\Fediverse' => ROOTPATH . 'modules/Fediverse/',
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue