Remove uneeded dependency

[MAILPOET-3075]
This commit is contained in:
Pavel Dohnal
2020-08-12 13:33:59 +02:00
committed by Veljko V
parent 1a3ea15817
commit e591ab1040
6 changed files with 1 additions and 19 deletions

View File

@@ -34,7 +34,6 @@ use MailPoet\Subscription\Captcha;
use MailPoet\Util\Helpers;
use MailPoet\WP\Functions as WPFunctions;
use MailPoetVendor\Carbon\Carbon;
use MailPoetVendor\Doctrine\ORM\EntityManager;
class Populator {
public $prefix;
@@ -56,11 +55,6 @@ class Populator {
/** @var FormsRepository */
private $formsRepository;
/**
* @var EntityManager
*/
private $entityManager;
public function __construct(
SettingsController $settings,
WPFunctions $wp,
@@ -68,7 +62,6 @@ class Populator {
ReferralDetector $referralDetector,
FeaturesController $flagsController,
FormsRepository $formsRepository,
EntityManager $entityManager,
FormFactory $formFactory
) {
$this->settings = $settings;
@@ -159,7 +152,6 @@ class Populator {
];
$this->flagsController = $flagsController;
$this->formsRepository = $formsRepository;
$this->entityManager = $entityManager;
}
public function up() {
@@ -743,7 +735,7 @@ class Populator {
}
$form->setSettings($settings);
}
$this->entityManager->flush();
$this->formsRepository->flush();
}
private function moveGoogleAnalyticsFromPremium() {