PHPComposter\PHPComposter\Plugin::persistConfig PHP Method

persistConfig() public static method

Persist the stored configuration.
Since: 0.1.0
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());
    }