Contao\CoreBundle\Command\InstallCommand::addIgnoredDir PHP Méthode

addIgnoredDir() private méthode

Adds a directory with a .gitignore file.
private addIgnoredDir ( string $path )
$path string
    private function addIgnoredDir($path)
    {
        $this->addEmptyDir($path);
        if ($this->fs->exists($path . '/.gitignore')) {
            return;
        }
        $this->fs->dumpFile($path . '/.gitignore', "# Create the folder and ignore its content\n*\n!.gitignore\n");
    }