/** * This method will write the code file with all of the generated javascript objects. * * @param InputInterface $input * @param OutputInterface $output */ protected function writeCode(InputInterface $input, OutputInterface $output) { $directory = $input->getArgument('directory'); $fileName = './' . $directory . '/generatedscript.js'; $output->writeLn($fileName); $this->commandUtility->filePutContents($fileName, $this->code); }