Skip to content

Commit 3c5e39f

Browse files
authored
Merge pull request #114 from php-etl/feature/delete-old-project-service-container
delete previous "ProjectServiceContainer..."s when building
2 parents 26c4f31 + 64982b3 commit 3c5e39f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Adapter/Filesystem/SatelliteBuilder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,16 +162,17 @@ public function build(): Configurator\SatelliteInterface
162162

163163
$satellite->dependsOn(...$this->composerRequire);
164164

165-
$this->clearPipelines();
165+
$this->clearPreviousFiles();
166166

167167
return $satellite;
168168
}
169169

170-
private function clearPipelines(): void
170+
private function clearPreviousFiles(): void
171171
{
172172
$iterator = new \AppendIterator();
173173

174174
$iterator->append(new \GlobIterator($this->workdir.'/pipeline*.php', \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS));
175+
$iterator->append(new \GlobIterator($this->workdir.'/ProjectServiceContainer*.php', \FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::SKIP_DOTS));
175176

176177
foreach ($iterator as $file) {
177178
if (is_file($file->getPathname())) {

0 commit comments

Comments
 (0)