src/Sulu/Bundle/CoreBundle/Composer/ScriptHandler.php
public static function removePackageLockJsonFromGitIgnore()
    {
        if (!file_exists(static::GIT_IGNORE_FILE)) {
            return;
        }

        $gitignore = file_get_contents(static::GIT_IGNORE_FILE);
        $gitignore = str_replace("package-lock.json\n", '', $gitignore);
        file_put_contents(static::GIT_IGNORE_FILE, $gitignore);
    }
public static function removePackageLockJsonFromGitIgnore()
    {
        if (!file_exists(static::GIT_IGNORE_FILE)) {
            return;
        }

        $gitignore = file_get_contents(static::GIT_IGNORE_FILE);
        $gitignore = str_replace("package-lock.json\n", '', $gitignore);
        file_put_contents(static::GIT_IGNORE_FILE, $gitignore);
    }
public static function removePackageLockJsonFromGitIgnore ( ) { if ( ! file_exists ( static :: GIT_IGNORE_FILE ) ) { return ; } $ gitignore = file_get_contents ( static :: GIT_IGNORE_FILE ) ; $ gitignore = str_replace ( "package-lock.json\n" , '' , $ gitignore ) ; file_put_contents ( static :: GIT_IGNORE_FILE , $ gitignore ) ; }
Removes the package-lock.json file from .gitignore, because we don't want the package-lock.json to be included in
our repositories, but they should be included when developing specific project.
Removes the package - lock . json file from . gitignore because we don t want the package - lock . json to be included in our repositories but they should be included when developing specific project .