Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Commit ef0fb54

Browse files
Put back prepareForPantheon() method.
1 parent beca62b commit ef0fb54

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/composer/ScriptHandler.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,12 @@ public static function createRequiredFiles(Event $event) {
4343
}
4444
}
4545

46+
public static function prepareForPantheon()
47+
{
48+
$gitignoreFile = getcwd() . '/.gitignore';
49+
$gitignoreContents = file_get_contents($gitignoreFile);
50+
$gitignoreContents = preg_replace('/.*::: cut :::*/s', '', $gitignoreContents);
51+
file_put_contents($gitignoreFile, $gitignoreContents);
52+
}
53+
4654
}

0 commit comments

Comments
 (0)