private function decodeLockFile(): array
    {
        $data = [];

        $encoder = $this->jsonEncoderFactory->getEncoder();
        if (file_exists($this->rootDirectory . 'composer.lock')) {
            $data = $encoder->decode(
                file_get_contents($this->rootDirectory.'composer.lock'),
                JsonEncoder::FORMAT
            );
        }

        return $data;
    }