Files
piratepoet/mailpoet/tasks/phpstan/bootstrap.php
Jan Lysý 1dd2c82634 Load PHPMailer
We don't support old loading for WordPress 5.5 and lower
[MAILPOET-4142]
2022-05-23 11:38:32 +02:00

25 lines
744 B
PHP

<?php
// Constants
define('WPINC', 'wp-includes');
define('WP_LANG_DIR', 'wp-content/languages');
define('WP_PLUGIN_DIR', 'wp-content/plugins');
define('WP_MEMORY_LIMIT', 268435456);
define('WP_MAX_MEMORY_LIMIT', 268435456);
define('MAILPOET_VERSION', '1.0.0');
define('DB_HOST', 'localhost');
define('DB_NAME', 'wordpress');
define('DB_USER', 'wordpress');
define('DB_PASSWORD', '12345');
// Define Database Tables constants
$dbConfig = new \MailPoet\Config\Database();
$dbConfig->defineTables();
// This needs to be set because \MailPoet\Doctrine\TablePrefixMetadataFactory can't construct without it
MailPoet\Config\Env::$dbPrefix = 'wp_';
// Load tracy
$tracyPath = __DIR__ . '/../../tools/vendor/tracy.phar';
require_once($tracyPath);