Skip to content

Commit 54d188b

Browse files
authored
Merge pull request #8021 from mostafakhudair/patch-2
refactor: rely on $config property in ViewDecoratorTrait
2 parents 5a52b60 + 73bf083 commit 54d188b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/View/ViewDecoratorTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ trait ViewDecoratorTrait
2222
*/
2323
protected function decorateOutput(string $html): string
2424
{
25-
$decorators = \config(ViewConfig::class)->decorators;
25+
$decorators = $this->config->decorators ?? config(ViewConfig::class)->decorators;
2626

2727
foreach ($decorators as $decorator) {
2828
if (! is_subclass_of($decorator, ViewDecoratorInterface::class)) {

0 commit comments

Comments
 (0)