Replace "new SettingsController()" with fetch from DI container
[MAILPOET-2436]
This commit is contained in:
committed by
Jack Kitterhing
parent
c91cd1255a
commit
d970dda637
@@ -12,7 +12,7 @@ use MailPoetVendor\Twig\TwigFunction;
|
||||
|
||||
class Analytics extends AbstractExtension {
|
||||
public function getFunctions() {
|
||||
$settings = new SettingsController();
|
||||
$settings = SettingsController::getInstance();
|
||||
$analytics = new AnalyticsGenerator(
|
||||
new Reporter($settings, new WooCommerceHelper()),
|
||||
$settings
|
||||
|
Reference in New Issue
Block a user