mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 20:47:46 +02:00
feat(components): add custom view renderer with ComponentRenderer adapted from bonfire2
- update Component class structure and remove component helper function and ComponentLoader - update residual activitypub naming to fediverse
This commit is contained in:
parent
5083cd2fda
commit
a95de8bab0
106 changed files with 1482 additions and 2139 deletions
|
|
@ -5,7 +5,7 @@ declare(strict_types=1);
|
|||
namespace ViewComponents\Config;
|
||||
|
||||
use CodeIgniter\Config\BaseService;
|
||||
use ViewComponents\ComponentLoader;
|
||||
use ViewComponents\ComponentRenderer;
|
||||
|
||||
/**
|
||||
* Services Configuration file.
|
||||
|
|
@ -19,12 +19,12 @@ use ViewComponents\ComponentLoader;
|
|||
*/
|
||||
class Services extends BaseService
|
||||
{
|
||||
public static function viewcomponents(bool $getShared = true): ComponentLoader
|
||||
public static function components(bool $getShared = true): ComponentRenderer
|
||||
{
|
||||
if ($getShared) {
|
||||
return self::getSharedInstance('viewcomponents');
|
||||
return self::getSharedInstance('components');
|
||||
}
|
||||
|
||||
return new ComponentLoader();
|
||||
return new ComponentRenderer();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue