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
405
405
$ this ->serviceFactory ->getDefaultVersion (ServiceInterface::SERVICE_MAILHOG ),
406
406
[
407
407
'ports ' => [
408
- ( $ config ->getMailHogSmtpPort () ?: ' 1025 ' ). ':1025 ' ,
409
- ( $ config ->getMailHogHttpPort () ?: ' 8025 ' ). ':8025 ' ,
408
+ $ config ->getMailHogSmtpPort () . ':1025 ' ,
409
+ $ config ->getMailHogHttpPort () . ':8025 ' ,
410
410
]
411
411
]
412
412
),
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ class BaseSource implements SourceInterface
27
27
public const DEFAULT_HOST = 'magento2.docker ' ;
28
28
public const DEFAULT_PORT = '80 ' ;
29
29
public const DEFAULT_TLS_PORT = '443 ' ;
30
+ public const DEFAULT_MAILHOG_SMTP_PORT = '1025 ' ;
31
+ public const DEFAULT_MAILHOG_HTTP_PORT = '8025 ' ;
32
+
30
33
31
34
/**
32
35
* @var EnvReader
@@ -73,7 +76,9 @@ public function read(): Repository
73
76
self ::SYSTEM_HOST => self ::DEFAULT_HOST ,
74
77
self ::SYSTEM_TLS_PORT => self ::DEFAULT_TLS_PORT ,
75
78
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
77
82
]);
78
83
79
84
try {
You can’t perform that action at this time.
0 commit comments