MyBuilder\Conductor\Command\LockFixerCommand::fixLockFileRealPathsWithRelativePaths PHP 메소드

fixLockFileRealPathsWithRelativePaths() 개인적인 메소드

private fixLockFileRealPathsWithRelativePaths ( Symfony\Component\Filesystem\Filesystem $fileSystem, $lockFile, $conductorRealPaths, $relativePaths )
$fileSystem Symfony\Component\Filesystem\Filesystem
    private function fixLockFileRealPathsWithRelativePaths(Filesystem $fileSystem, $lockFile, $conductorRealPaths, $relativePaths)
    {
        $initialContent = file_get_contents($lockFile);
        $fixedContent = str_replace($conductorRealPaths, $relativePaths, $initialContent);
        if ($initialContent === $fixedContent) {
            return false;
        }
        $fileSystem->dumpFile($lockFile, $fixedContent);
        return true;
    }