public static persistConfig ( Composer\Script\Event $event ) | ||
$event | Composer\Script\Event | Event that was triggered. |
public static function persistConfig(Event $event)
{
$filesystem = new Filesystem();
$path = Paths::getPath('git_composter');
$filesystem->ensureDirectoryExists($path);
file_put_contents(Paths::getPath('git_config'), static::getConfig());
}