getServiceLocator()->get(UserCsvImporterFactory::SERVICE_ID); $typeOptions = $importerFactory->getOption(UserCsvImporterFactory::OPTION_MAPPERS); $typeOptions[ProctorCsvImporter::USER_IMPORTER_TYPE] = array( UserCsvImporterFactory::OPTION_MAPPERS_IMPORTER => new ProctorCsvImporter() ); $importerFactory->setOption(UserCsvImporterFactory::OPTION_MAPPERS, $typeOptions); $this->registerService(UserCsvImporterFactory::SERVICE_ID, $importerFactory); return \common_report_Report::createSuccess('Proctor csv importer successfully registered.'); } }