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

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

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