Skip to content

Commit 3765c54

Browse files
committed
fix: remove workaround for finder bug
symfony/symfony#39257
1 parent 0a50c2f commit 3765c54

2 files changed

Lines changed: 1 addition & 26 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"symfony/dependency-injection": "^4.4",
2929
"symfony/event-dispatcher": "^4.4",
3030
"symfony/filesystem": "^4.4",
31-
"symfony/finder": "^4.4",
31+
"symfony/finder": "^4.4.24",
3232
"symfony/process": "^4.4",
3333
"symfony/yaml": "^4.4",
3434
"tightenco/collect": "^8.0"

src/Build/CopyWordPressFilesStep.php

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -105,30 +105,6 @@ private function getBaseFinder(): Finder
105105
->files();
106106
}
107107

108-
/**
109-
* List of files we need to append manually because they're in the default Bedrock .gitignore file.
110-
*/
111-
private function getBedrockFilesToAppend(): array
112-
{
113-
$files = [];
114-
115-
/**
116-
* Finder can't seem to honor the .gitignore path ignoring child folders in the mu-plugins
117-
* folder while keeping the files at the root of the mu-plugins folder.
118-
*
119-
* @see https://github.com/symfony/symfony/issues/39257
120-
*/
121-
$finder = $this->getBaseFinder()
122-
->path('/^web\/app\/mu-plugins/')
123-
->depth('== 3');
124-
125-
foreach ($finder as $file) {
126-
$files[] = $file;
127-
}
128-
129-
return $files;
130-
}
131-
132108
/**
133109
* Get files from "include" node.
134110
*/
@@ -157,7 +133,6 @@ private function getProjectFiles(string $projectType): Finder
157133
$finder->append($this->getWordPressFilesToAppend());
158134
} elseif ('bedrock' === $projectType) {
159135
$finder->exclude('web/app/uploads');
160-
$finder->append($this->getBedrockFilesToAppend());
161136
}
162137

163138
return $finder;

0 commit comments

Comments
 (0)