public function getLegacyModuleFileConverter()
{
if (!$this->legacyModuleFileConverter) {
$this->legacyModuleFileConverter = $this->createValidatingConverter(new MigratingConverter($this->getModuleFileConverter(), ModuleFileConverter::VERSION, $this->getModuleFileMigrationManager()), function (stdClass $jsonData) {
if (isset($jsonData->{'$schema'})) {
return $jsonData->{'$schema'};
}
// BC with 1.0
return 'http://puli.io/schema/1.0/manager/module';
});
}
return $this->legacyModuleFileConverter;
}