geno/wp-content/plugins/mailpoet/lib/Migrator/AppMigration.php
2024-02-01 11:54:18 +00:00

26 lines
539 B
PHP

<?php declare(strict_types = 1);
namespace MailPoet\Migrator;
if (!defined('ABSPATH')) exit;
use MailPoet\DI\ContainerWrapper;
use MailPoetVendor\Doctrine\ORM\EntityManager;
abstract class AppMigration {
/** @var ContainerWrapper */
protected $container;
/** @var EntityManager */
protected $entityManager;
public function __construct(
ContainerWrapper $container
) {
$this->container = $container;
$this->entityManager = $container->get(EntityManager::class);
}
abstract public function run(): void;
}