Code: Select all
Call to undefined function RS\composer\yaml_emit_file()
< /code>
Okay, so ein wenig über den Hintergrund: < /p>
PHP Version 7.1.7 & Composer Version 1.5.1 < /p>
Ich verwende diese Funktion in einer ScriptHandler.php -Datei, die bei Composer < /coces> is run. In diesem Skript habe ich eine Funktion BuildModulelist
Code: Select all
if (!$fs->exists($moduleListFile)) {
$fs->touch($root.'/profiles/thunder/modulelist.yml');
$fs->chmod($root . '/profiles/thunder/modulelist.yml', 0666);
if(!empty($moduleList)){
$createyml= yaml_emit_file($moduleListFile, $moduleList);
if (!$createyml){
$io->writeError('Cannot create modulelist.yml');
}
}
$io->write('Success: Created new modulelist.yml', $newline= TRUE);
}
else{
$fs->file_put_contents($moduleListFile, $installedPackage, FILE_APPEND);
$io->write('Success: Module entry in modulelist.yml', $newline= TRUE);
}