Skip to content

Commit

Permalink
Merge pull request #8021 from mostafakhudair/patch-2
Browse files Browse the repository at this point in the history
refactor: rely on $config property in ViewDecoratorTrait
  • Loading branch information
kenjis authored Dec 26, 2023
2 parents 5a52b60 + 73bf083 commit 54d188b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/View/ViewDecoratorTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trait ViewDecoratorTrait
*/
protected function decorateOutput(string $html): string
{
$decorators = \config(ViewConfig::class)->decorators;
$decorators = $this->config->decorators ?? config(ViewConfig::class)->decorators;

foreach ($decorators as $decorator) {
if (! is_subclass_of($decorator, ViewDecoratorInterface::class)) {
Expand Down

0 comments on commit 54d188b

Please sign in to comment.