Add alias for WooCommerceHelper for better readability
[MAILPOET-1815]
This commit is contained in:
committed by
M. Shull
parent
453aebb738
commit
0dac1cacfb
@@ -5,14 +5,14 @@ namespace MailPoet\Twig;
|
||||
use MailPoet\Analytics\Reporter;
|
||||
use MailPoet\Analytics\Analytics as AnalyticsGenerator;
|
||||
use MailPoet\Settings\SettingsController;
|
||||
use MailPoet\WooCommerce\Helper;
|
||||
use MailPoet\WooCommerce\Helper as WooCommerceHelper;
|
||||
|
||||
if (!defined('ABSPATH')) exit;
|
||||
|
||||
class Analytics extends \Twig_Extension {
|
||||
public function getFunctions() {
|
||||
$settings = new SettingsController();
|
||||
$analytics = new AnalyticsGenerator(new Reporter($settings, new Helper), $settings);
|
||||
$analytics = new AnalyticsGenerator(new Reporter($settings, new WooCommerceHelper), $settings);
|
||||
return array(
|
||||
new \Twig_SimpleFunction(
|
||||
'get_analytics_data',
|
||||
|
Reference in New Issue
Block a user