Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 8888448

Browse files
author
Tim Kelty
committed
Use createObject for DI
1 parent d1103d6 commit 8888448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TwigExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function getGlobals()
1515
{
1616
return [
1717
'upper' => [
18-
'cache' => new CacheResponse(\Craft::$app->getResponse())
18+
'cache' => \Craft::createObject(CacheResponse::class, [\Craft::$app->getResponse()]),
1919
]
2020
];
2121
}

0 commit comments

Comments
 (0)