Skip to content

Commit

Permalink
Fixes #4625 to remove composer/xdebug-handler. (#4629)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemadison13 committed Nov 7, 2022
1 parent 6424cde commit 125dedb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 150 deletions.
1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"composer-plugin-api": "^2.0",
"composer-runtime-api": "^2.0",
"acquia/drupal-environment-detector": "^1.5.0",
"composer/xdebug-handler": "^3.0",
"consolidation/comments": "^1.0",
"consolidation/config": "^1.0.0 || ^2.0.0",
"consolidation/robo": "^3",
Expand Down
139 changes: 1 addition & 138 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 0 additions & 11 deletions src/Robo/Inspector/Inspector.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Acquia\Blt\Robo\Config\ConfigAwareTrait;
use Acquia\Blt\Robo\Config\YamlConfigProcessor;
use Acquia\Blt\Robo\Exceptions\BltException;
use Composer\XdebugHandler\XdebugHandler;
use Consolidation\Config\Loader\YamlConfigLoader;
use League\Container\ContainerAwareInterface;
use League\Container\ContainerAwareTrait;
Expand Down Expand Up @@ -577,7 +576,6 @@ public function isSchemaVersionUpToDate() {
public function issueEnvironmentWarnings($command_name) {
if (!$this->warningsIssued) {
$this->warnIfPhpOutdated();
$this->warnIfXdebugActive();

$this->warningsIssued = TRUE;
}
Expand All @@ -596,15 +594,6 @@ public function warnIfPhpOutdated() {
}
}

/**
* Warns the user if the xDebug extension is loaded.
*/
protected function warnIfXdebugActive(): void {
if (XdebugHandler::isXdebugActive()) {
$this->logger->warning("The xDebug extension is active. This will significantly decrease performance.");
}
}

/**
* Determines if the active config is identical to sync directory.
*
Expand Down

0 comments on commit 125dedb

Please sign in to comment.