Skip to content
Snippets Groups Projects

Issue #3357657: ComposerValidator catches an exception and assumes it is because the path to Composer is not set

Merged Issue #3357657: ComposerValidator catches an exception and assumes it is because the path to Composer is not set
All threads resolved!
All threads resolved!
16 files
+ 165
22
Compare changes
  • Side-by-side
  • Inline
Files
16
@@ -7,6 +7,7 @@ namespace Drupal\package_manager\PathExcluder;
use Drupal\package_manager\ComposerInspector;
use Drupal\package_manager\Event\CollectPathsToExcludeEvent;
use Drupal\package_manager\PathLocator;
use PhpTuf\ComposerStager\Infrastructure\Factory\Path\PathFactoryInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
@@ -28,9 +29,12 @@ final class GitExcluder implements EventSubscriberInterface {
* The path locator service.
* @param \Drupal\package_manager\ComposerInspector $composerInspector
* The Composer inspector service.
* @param \PhpTuf\ComposerStager\Infrastructure\Factory\Path\PathFactoryInterface $path_factory
* The path factory service.
*/
public function __construct(PathLocator $path_locator, private readonly ComposerInspector $composerInspector) {
public function __construct(PathLocator $path_locator, private readonly ComposerInspector $composerInspector, PathFactoryInterface $path_factory) {
$this->pathLocator = $path_locator;
$this->pathFactory = $path_factory;
}
/**
Loading