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 f277814 commit 67f8876Copy full SHA for 67f8876
system/View/ViewDecoratorTrait.php
@@ -12,7 +12,6 @@
12
namespace CodeIgniter\View;
13
14
use CodeIgniter\View\Exceptions\ViewException;
15
-use Config\View as ViewConfig;
16
17
trait ViewDecoratorTrait
18
{
@@ -22,9 +21,7 @@ trait ViewDecoratorTrait
22
21
*/
23
protected function decorateOutput(string $html): string
24
25
- $decorators = \config(ViewConfig::class)->decorators;
26
-
27
- foreach ($decorators as $decorator) {
+ foreach ($this->config->decorators as $decorator) {
28
if (! is_subclass_of($decorator, ViewDecoratorInterface::class)) {
29
throw ViewException::forInvalidDecorator($decorator);
30
}
0 commit comments