Refactor CDN assets URL to separate service
[MAILPOET-3076]
This commit is contained in:
committed by
Veljko V
parent
e7206193e8
commit
6fb755eda7
@ -2,7 +2,9 @@
|
||||
|
||||
namespace MailPoet\Config;
|
||||
|
||||
use MailPoet\DI\ContainerWrapper;
|
||||
use MailPoet\Twig;
|
||||
use MailPoet\Util\CdnAssetUrl;
|
||||
use MailPoet\WP\Functions as WPFunctions;
|
||||
use MailPoetVendor\Twig\Environment as TwigEnv;
|
||||
use MailPoetVendor\Twig\Extension\DebugExtension;
|
||||
@ -72,11 +74,10 @@ class Renderer {
|
||||
public function setupGlobalVariables() {
|
||||
$this->renderer->addExtension(new Twig\Assets([
|
||||
'version' => Env::$version,
|
||||
'base_url' => Env::$baseUrl,
|
||||
'assets_url' => Env::$assetsUrl,
|
||||
'assets_manifest_js' => $this->assetsManifestJs,
|
||||
'assets_manifest_css' => $this->assetsManifestCss,
|
||||
]));
|
||||
], ContainerWrapper::getInstance()->get(CdnAssetUrl::class)));
|
||||
}
|
||||
|
||||
public function setupSyntax() {
|
||||
|
Reference in New Issue
Block a user