Skip to content
Snippets Groups Projects

Issue #3304365: Do not check excluded folders for symlinks

Merged Adam G-H requested to merge issue/automatic_updates-3304365:3304365-do-not-check into 8.x-2.x
Compare and
23 files
+ 326
91
Compare changes
  • Side-by-side
  • Inline
Files
23
 
<?php
 
 
namespace Drupal\package_manager\Event;
 
 
use Drupal\package_manager\Stage;
 
use PhpTuf\ComposerStager\Domain\Value\PathList\PathListInterface;
 
use PhpTuf\ComposerStager\Infrastructure\Value\PathList\PathList;
 
 
/**
 
* Defines an event that collects ignored paths.
 
*
 
* Ignored paths are completely ignored by Composer Stager. They are never
 
* copied into the staging area from the active directory, or vice-versa.
    • Comment on lines +12 to +13

      I don't know if we want to say never it is really for the next operation or status check.

      • I guess my point is what actually happens depends on the logic of the subscriber. I don't to get give the impression the fire the event 1x for the whole lifecycle of the update and if you add the exclusion it will be excluded in all stages. That depends on you ignoring the state of the stage

      • Please register or sign in to reply
Please register or sign in to reply
 
*/
 
class CollectIgnoredPathsEvent extends StageEvent implements PathListInterface {
 
 
/**
 
* The list of ignored paths.
 
*
 
* @var \PhpTuf\ComposerStager\Domain\Value\PathList\PathListInterface
 
*/
 
protected PathListInterface $pathList;
 
 
/**
 
* {@inheritdoc}
 
*/
 
public function __construct(Stage $stage) {
 
parent::__construct($stage);
 
$this->pathList = new PathList([]);
 
}
 
 
/**
 
+2
* {@inheritdoc}
 
*/
 
public function add(array $paths): void {
 
$this->pathList->add($paths);
 
}
 
 
/**
 
* {@inheritdoc}
 
*/
 
public function getAll(): array {
 
return $this->pathList->getAll();
 
}
 
 
}
Loading