getComposer(), $event->getIO()); $basePath = $config->get('base-dir'); $frameworkPackageNames = $this->getFrameworkPackageNames($config); $io = $event->getIO(); $io->writeError('TYPO3: Dumping framework package names', true, $io::VERBOSE); file_put_contents( $basePath . self::CORE_RESOURCE_PATH, 'get('base-dir') . '/composer.json'); if ($typo3Json === false) { throw new \RuntimeException('The main TYPO3 composer.json file was not found.', 1774091461); } return array_keys( array_filter( json_decode($typo3Json, true, 512, JSON_THROW_ON_ERROR)['replace'] ?? [], static fn($value) => $value === 'self.version' ) ); } }