File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -405,8 +405,8 @@ public function build(Config $config): Manager
405405 $ this ->serviceFactory ->getDefaultVersion (ServiceInterface::SERVICE_MAILHOG ),
406406 [
407407 'ports ' => [
408- ( $ config ->getMailHogSmtpPort () ?: ' 1025 ' ). ':1025 ' ,
409- ( $ config ->getMailHogHttpPort () ?: ' 8025 ' ). ':8025 ' ,
408+ $ config ->getMailHogSmtpPort () . ':1025 ' ,
409+ $ config ->getMailHogHttpPort () . ':8025 ' ,
410410 ]
411411 ]
412412 ),
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ class BaseSource implements SourceInterface
2727 public const DEFAULT_HOST = 'magento2.docker ' ;
2828 public const DEFAULT_PORT = '80 ' ;
2929 public const DEFAULT_TLS_PORT = '443 ' ;
30+ public const DEFAULT_MAILHOG_SMTP_PORT = '1025 ' ;
31+ public const DEFAULT_MAILHOG_HTTP_PORT = '8025 ' ;
32+
3033
3134 /**
3235 * @var EnvReader
@@ -73,7 +76,9 @@ public function read(): Repository
7376 self ::SYSTEM_HOST => self ::DEFAULT_HOST ,
7477 self ::SYSTEM_TLS_PORT => self ::DEFAULT_TLS_PORT ,
7578 self ::INSTALLATION_TYPE => self ::INSTALLATION_TYPE_COMPOSER ,
76- self ::MAGENTO_VERSION => $ this ->getMagentoVersion ()
79+ self ::MAGENTO_VERSION => $ this ->getMagentoVersion (),
80+ self ::SYSTEM_MAILHOG_SMTP_PORT => self ::DEFAULT_MAILHOG_SMTP_PORT ,
81+ self ::SYSTEM_MAILHOG_HTTP_PORT => self ::DEFAULT_MAILHOG_HTTP_PORT
7782 ]);
7883
7984 try {
You can’t perform that action at this time.
0 commit comments