PHPComposter\PHPComposter\Plugin::linkBootstrapFiles PHP Метод

linkBootstrapFiles() защищенный Метод

Symlink the bootstrapping code into the .git folder.
С версии: 0.1.0
protected linkBootstrapFiles ( Composer\Util\Filesystem $filesystem )
$filesystem Composer\Util\Filesystem Reference to the Filesystem instance.
    protected function linkBootstrapFiles(Filesystem $filesystem)
    {
        $rootTemplate = Paths::getPath('root_template');
        $composterTemplate = Paths::getPath('git_template');
        $files = array('bootstrap.php');
        foreach ($files as $file) {
            if (static::$io->isVeryVerbose()) {
                static::$io->write(sprintf(_('Symlinking %1$s to %2$s'), $rootTemplate . $file, $composterTemplate . $file));
            }
            $filesystem->relativeSymlink($composterTemplate . $file, $rootTemplate . $file);
        }
    }