File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
app/code/Magento/Theme/Controller/Result Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 1010use Magento \Csp \Api \InlineUtilInterface ;
1111use Magento \Framework \App \Config \ScopeConfigInterface ;
1212use Magento \Store \Model \ScopeInterface ;
13- use Magento \Framework \App \Response \ Http ;
13+ use Magento \Framework \App \ObjectManager ;
1414use Magento \Framework \App \Response \HttpInterface as HttpResponseInterface ;
1515use Magento \Framework \App \ResponseInterface ;
1616use Magento \Framework \View \Result \Layout ;
@@ -34,14 +34,16 @@ class AsyncCssPlugin
3434
3535 /**
3636 * @param ScopeConfigInterface $scopeConfig
37- * @param InlineUtilInterface $cspInlineUtil
37+ * @param InlineUtilInterface|null $cspInlineUtil
3838 */
3939 public function __construct (
4040 ScopeConfigInterface $ scopeConfig ,
41- InlineUtilInterface $ cspInlineUtil
41+ InlineUtilInterface $ cspInlineUtil = null
4242 ) {
4343 $ this ->scopeConfig = $ scopeConfig ;
44- $ this ->cspInlineUtil = $ cspInlineUtil ;
44+ $ this ->cspInlineUtil = $ cspInlineUtil ?: ObjectManager::getInstance ()->get (
45+ InlineUtilInterface::class
46+ );
4547 }
4648
4749 /**
You can’t perform that action at this time.
0 commit comments