Command/ImportPeopleFromCSVCommand.php
protected function loadAnswerMatching()
    {
        if ($this->input->hasOption('load-choice-matching')) {
            $fs = new Filesystem();
            $filename = $this->input->getOption('load-choice-matching');

            if (!$fs->exists($filename)) {
                $this->logger->warning("The file $filename is not found. Choice matching not loaded");
            } else {
                $this->logger->debug("Loading $filename as choice matching");
                $this->cacheAnswersMapping = \json_decode(\file_get_contents($filename), true);
            }
        }
    }
protected function loadAnswerMatching()
    {
        if ($this->input->hasOption('load-choice-matching')) {
            $fs = new Filesystem();
            $filename = $this->input->getOption('load-choice-matching');

            if (!$fs->exists($filename)) {
                $this->logger->warning("The file $filename is not found. Choice matching not loaded");
            } else {
                $this->logger->debug("Loading $filename as choice matching");
                $this->cacheAnswersMapping = \json_decode(\file_get_contents($filename), true);
            }
        }
    }
Load the mapping between answer in CSV and value in choices from a json file