Skip to content

Commit e146e9b

Browse files
author
Igor Vitol
committed
host.docker.internal: --set-docker-host is deprecated now
1 parent f43e36c commit e146e9b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Command/BuildCompose.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ protected function configure(): void
181181
null,
182182
InputOption::VALUE_REQUIRED,
183183
'MailHog HTTP port'
184+
)->addOption(
185+
Source\CliSource::OPTION_SET_DOCKER_HOST_XDEBUG,
186+
null,
187+
InputOption::VALUE_NONE,
188+
'Deprecated option to resolve host.docker.internal on Linux. Did nothing at the moment'
184189
)->addOption(
185190
Source\CliSource::OPTION_NGINX_WORKER_PROCESSES,
186191
null,

src/Config/Source/CliSource.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ class CliSource implements SourceInterface
5656
public const OPTION_WITH_ENTRYPOINT = 'with-entrypoint';
5757
public const OPTION_WITH_MARIADB_CONF = 'with-mariadb-conf';
5858

59+
/**
60+
* @deprecated Will be removed in next major release
61+
*/
62+
public const OPTION_SET_DOCKER_HOST_XDEBUG = 'set-docker-host';
63+
5964
/**
6065
* Environment variables.
6166
*/

0 commit comments

Comments
 (0)