WooCommerce
2 months ago
AutomaticEmailFactory.php
3 years ago
AutomaticEmails.php
2 months ago
index.php
3 years ago
AutomaticEmailFactory.php
25 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\AutomaticEmails; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | use MailPoet\AutomaticEmails\WooCommerce\WooCommerce; |
| 9 | use MailPoet\DI\ContainerWrapper; |
| 10 | |
| 11 | class AutomaticEmailFactory { |
| 12 | /** @var ContainerWrapper */ |
| 13 | private $container; |
| 14 | |
| 15 | public function __construct( |
| 16 | ContainerWrapper $container |
| 17 | ) { |
| 18 | $this->container = $container; |
| 19 | } |
| 20 | |
| 21 | public function createWooCommerceEmail(): WooCommerce { |
| 22 | return $this->container->get(WooCommerce::class); |
| 23 | } |
| 24 | } |
| 25 |