We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67f8876 commit 753fe0eCopy full SHA for 753fe0e
system/View/ViewDecoratorTrait.php
@@ -21,7 +21,9 @@ trait ViewDecoratorTrait
21
*/
22
protected function decorateOutput(string $html): string
23
{
24
- foreach ($this->config->decorators as $decorator) {
+ $decorators = $this->config->decorators ?? \config(ViewConfig::class)->decorators;
25
+
26
+ foreach ($decorators as $decorator) {
27
if (! is_subclass_of($decorator, ViewDecoratorInterface::class)) {
28
throw ViewException::forInvalidDecorator($decorator);
29
}
0 commit comments