Loading app/Config/Filters.php +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ class Filters extends BaseConfig /** * List of filter aliases that are always applied before and after every request. * * @var array<string, array<string, array<string, string|array<string>>>>>|array<string, list<string>> * @var array<string, array<string, array<string, string|array<string>>>>|array<string, list<string>> */ public array $globals = [ 'before' => [ Loading app/Config/Generators.php +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ class Generators extends BaseConfig * * YOU HAVE BEEN WARNED! * * @var array<string, string> * @var array<string, string|array<string,string>> */ public array $views = [ 'make:cell' => [ Loading app/Config/Services.php +10 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ declare(strict_types=1); namespace Config; use App\Libraries\Breadcrumb; use App\Libraries\HtmlHead; use App\Libraries\Negotiate; use App\Libraries\Router; use CodeIgniter\Config\BaseService; Loading Loading @@ -66,4 +67,13 @@ class Services extends BaseService return new Breadcrumb(); } public static function html_head(bool $getShared = true): HtmlHead { if ($getShared) { return self::getSharedInstance('html_head'); } return new HtmlHead(); } } app/Config/View.php +1 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ declare(strict_types=1); namespace Config; use App\Views\Decorators\SiteHead; use CodeIgniter\Config\View as BaseView; use CodeIgniter\View\ViewDecoratorInterface; use ViewComponents\Decorator; Loading Loading @@ -54,5 +53,5 @@ class View extends BaseView * * @var list<class-string<ViewDecoratorInterface>> */ public array $decorators = [Decorator::class, SiteHead::class]; public array $decorators = [Decorator::class]; } app/Controllers/ActorController.php +3 −3 Original line number Diff line number Diff line Loading @@ -31,9 +31,9 @@ class ActorController extends FediverseActorController } helper(['form', 'components', 'svg']); $data = [ // @phpstan-ignore-next-line 'metatags' => get_follow_metatags($this->actor), set_follow_metatags($this->actor); $data = [ 'actor' => $this->actor, ]; Loading Loading
app/Config/Filters.php +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ class Filters extends BaseConfig /** * List of filter aliases that are always applied before and after every request. * * @var array<string, array<string, array<string, string|array<string>>>>>|array<string, list<string>> * @var array<string, array<string, array<string, string|array<string>>>>|array<string, list<string>> */ public array $globals = [ 'before' => [ Loading
app/Config/Generators.php +1 −1 Original line number Diff line number Diff line Loading @@ -25,7 +25,7 @@ class Generators extends BaseConfig * * YOU HAVE BEEN WARNED! * * @var array<string, string> * @var array<string, string|array<string,string>> */ public array $views = [ 'make:cell' => [ Loading
app/Config/Services.php +10 −0 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ declare(strict_types=1); namespace Config; use App\Libraries\Breadcrumb; use App\Libraries\HtmlHead; use App\Libraries\Negotiate; use App\Libraries\Router; use CodeIgniter\Config\BaseService; Loading Loading @@ -66,4 +67,13 @@ class Services extends BaseService return new Breadcrumb(); } public static function html_head(bool $getShared = true): HtmlHead { if ($getShared) { return self::getSharedInstance('html_head'); } return new HtmlHead(); } }
app/Config/View.php +1 −2 Original line number Diff line number Diff line Loading @@ -4,7 +4,6 @@ declare(strict_types=1); namespace Config; use App\Views\Decorators\SiteHead; use CodeIgniter\Config\View as BaseView; use CodeIgniter\View\ViewDecoratorInterface; use ViewComponents\Decorator; Loading Loading @@ -54,5 +53,5 @@ class View extends BaseView * * @var list<class-string<ViewDecoratorInterface>> */ public array $decorators = [Decorator::class, SiteHead::class]; public array $decorators = [Decorator::class]; }
app/Controllers/ActorController.php +3 −3 Original line number Diff line number Diff line Loading @@ -31,9 +31,9 @@ class ActorController extends FediverseActorController } helper(['form', 'components', 'svg']); $data = [ // @phpstan-ignore-next-line 'metatags' => get_follow_metatags($this->actor), set_follow_metatags($this->actor); $data = [ 'actor' => $this->actor, ]; Loading