];
$composerJson['require-dev'
] =
[ 'shopware/dev-tools' => '*',
];
if (!
isset($composerJson['repositories'
])) { $composerJson['repositories'
] =
[];
} $composerJson['repositories'
] =
$this->
addSymlinkRepository($composerJson['repositories'
]);
file_put_contents($composerJsonPath,
json_encode($composerJson, \JSON_THROW_ON_ERROR | \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES
));
} public function copyNewTemplateFiles(string
$projectDir): void
{ $fs =
new Filesystem();
$fs->
mirror(__DIR__ . '/../Resources/flex-config/',
$projectDir);
}