Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Merge requests
!564
Issue
#3304365
: Do not check excluded folders for symlinks
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3304365
: Do not check excluded folders for symlinks
issue/automatic_updates-3304365:3304365-do-not-check
into
8.x-2.x
Overview
14
Commits
27
Pipelines
1
Changes
5
Merged
Adam G-H
requested to merge
issue/automatic_updates-3304365:3304365-do-not-check
into
8.x-2.x
2 years ago
Overview
9
Commits
27
Pipelines
1
Changes
5
Expand
0
0
Merge request reports
Viewing commit
2508433e
Prev
Next
Show latest version
5 files
+
105
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
2508433e
Add new events
· 2508433e
Adam Globus-Hoenich
authored
2 years ago
package_manager/src/Event/CollectIgnoredPathsEvent.php
0 → 100644
+
46
−
0
Options
<?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.
*/
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
([]);
}
/**
* {@inheritdoc}
*/
public
function
add
(
array
$paths
):
void
{
$this
->
pathList
->
add
(
$paths
);
}
/**
* {@inheritdoc}
*/
public
function
getAll
():
array
{
return
$this
->
pathList
->
getAll
();
}
}
Loading