public function process(ContainerBuilder $container)
{
$packages = [];
if (is_file($this->jsonFile)) {
$json = json_decode(file_get_contents($this->jsonFile), true);
if (null !== $json) {
$packages = $this->getVersions($json);
}
}
$container->setParameter('kernel.packages', $packages);
}