Skip to content

Commit

Permalink
find values
Browse files Browse the repository at this point in the history
  • Loading branch information
mabumusa1 committed Mar 31, 2023
1 parent a299a37 commit b6ddd5f
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/bundles/CoreBundle/Test/AbstractMauticTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,15 @@ protected function setUpSymfony(array $defaultConfigOptions = []): void

$this->em = self::$container->get('doctrine')->getManager();
$this->connection = $this->em->getConnection();
$envVars = [
'MYSQL_PWD' => $this->connection->getPassword(),
'db_host' => $this->connection->getHost(),
'db_port' => $this->connection->getPort(),
'db_user' => $this->connection->getUsername(),
'db_name' => $this->connection->getDatabase(),
];

var_dump($envVars);
$this->router = self::$container->get('router');
$scheme = $this->router->getContext()->getScheme();
$secure = 0 === strcasecmp($scheme, 'https');
Expand Down
41 changes: 41 additions & 0 deletions app/config/local.php.backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

$parameters = [
'api_enabled' => true,
'api_enable_basic_auth' => true,
'db_driver' => 'pdo_mysql',
'db_host' => 'db',
'db_table_prefix' => null,
'db_port' => 3306,
'db_name' => 'db',
'db_user' => 'db',
'db_password' => 'db',
'admin_email' => 'mautic@ddev.local',
'admin_password' => 'mautic',
'install_source' => 'DDEV',
'db_backup_tables' => false,
'db_backup_prefix' => 'bak_',
'mailer_from_name' => 'DDEV',
'mailer_from_email' => 'mautic@ddev.local',
'mailer_transport' => 'smtp',
'mailer_host' => 'localhost',
'mailer_port' => '1025',
'mailer_user' => null,
'mailer_password' => null,
'mailer_amazon_region' => 'us-east-1',
'mailer_amazon_other_region' => null,
'mailer_sparkpost_region' => null,
'mailer_api_key' => null,
'mailer_encryption' => null,
'mailer_auth_mode' => null,
'mailer_spool_type' => 'memory',
'mailer_spool_path' => '%kernel.project_dir%/var/spool',
'messenger_dsn' => 'sync://',
'messenger_type' => 'sync',
'messenger_retry_strategy_max_retries' => 3,
'messenger_retry_strategy_delay' => 1000,
'messenger_retry_strategy_multiplier' => 2,
'messenger_retry_strategy_max_delay' => 0,
'secret_key' => 'a66865e4094016c1b33456353e6b4a55c29b6c79008aee57149d0a7fd9ea18c6',
'site_url' => 'https://mautic.ddev.site/index_dev.php',
];

0 comments on commit b6ddd5f

Please sign in to comment.