mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 03:06:43 +02:00
refactor(view-components): use CI4's View Decorators to render components
This commit is contained in:
parent
a182d96f18
commit
a3ebd6c9a4
6 changed files with 42 additions and 181 deletions
|
|
@ -6,6 +6,7 @@ namespace Config;
|
|||
|
||||
use CodeIgniter\Config\View as BaseView;
|
||||
use CodeIgniter\View\ViewDecoratorInterface;
|
||||
use ViewComponents\Decorator;
|
||||
|
||||
class View extends BaseView
|
||||
{
|
||||
|
|
@ -46,5 +47,5 @@ class View extends BaseView
|
|||
*
|
||||
* @var class-string<ViewDecoratorInterface>[]
|
||||
*/
|
||||
public array $decorators = [];
|
||||
public array $decorators = [Decorator::class];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue