File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed
cloud_base_developer_manual Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 12
12
use Magento \CloudDocker \Config \Config ;
13
13
use Magento \CloudDocker \Config \Environment \Converter ;
14
14
use Magento \CloudDocker \Filesystem \FileList ;
15
+ use Magento \CloudDocker \Service \ServiceInterface ;
15
16
16
17
/**
17
18
* Developer compose configuration.
@@ -149,11 +150,18 @@ public function build(Config $config): Manager
149
150
$ dbVolumes
150
151
)
151
152
]);
153
+
154
+ $ variables = [
155
+ 'MAGENTO_RUN_MODE ' => 'developer ' ,
156
+ 'PHP_EXTENSIONS ' => implode (' ' , $ this ->extensionResolver ->get ($ config ))
157
+ ];
158
+
159
+ if ($ config ->hasServiceEnabled (ServiceInterface::SERVICE_MAILHOG )) {
160
+ $ variables ['SENDMAIL_PATH ' ] = '/usr/local/bin/mhsendmail --smtp-addr=mailhog:1025 ' ;
161
+ }
162
+
152
163
$ manager ->updateService (self ::SERVICE_GENERIC , [
153
- 'environment ' => $ this ->converter ->convert (array_merge (
154
- ['MAGENTO_RUN_MODE ' => 'developer ' ],
155
- ['PHP_EXTENSIONS ' => implode (' ' , $ this ->extensionResolver ->get ($ config ))]
156
- ))
164
+ 'environment ' => $ this ->converter ->convert ($ variables )
157
165
]);
158
166
159
167
return $ manager ;
Original file line number Diff line number Diff line change @@ -147,6 +147,7 @@ services:
147
147
environment :
148
148
- MAGENTO_RUN_MODE=developer
149
149
- ' PHP_EXTENSIONS=bcmath bz2 calendar exif gd gettext intl mysqli pcntl pdo_mysql soap sockets sysvmsg sysvsem sysvshm opcache zip xsl sodium redis'
150
+ - ' SENDMAIL_PATH=/usr/local/bin/mhsendmail --smtp-addr=mailhog:1025'
150
151
build :
151
152
hostname : build.magento2.docker
152
153
image : ' magento/magento-cloud-docker-php:7.3-cli-1.2.0'
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ services:
127
127
environment :
128
128
- MAGENTO_RUN_MODE=developer
129
129
- ' PHP_EXTENSIONS=bcmath bz2 calendar exif gd gettext intl mysqli pcntl pdo_mysql soap sockets sysvmsg sysvsem sysvshm opcache zip xsl sodium redis'
130
+ - ' SENDMAIL_PATH=/usr/local/bin/mhsendmail --smtp-addr=mailhog:1025'
130
131
build :
131
132
hostname : build.magento2.docker
132
133
image : ' magento/magento-cloud-docker-php:7.3-cli-1.2.0'
You can’t perform that action at this time.
0 commit comments