protected function execute(InputInterface $input, OutputInterface $output) { // Get the arguments and options $source = $input->getArgument(self::SOURCE_ARGUMENT); $destination = $input->getOption(self::DESTINATION_OPTION); $filename = $input->getOption(self::LICENSE_FILENAME_OPTION); // Create a new (license) file handler $handler = new Handler($output); // Perform the copy $handler->copy($source, $destination, $filename); }
protected function execute(InputInterface $input, OutputInterface $output) { // Get the arguments and options $source = $input->getArgument(self::SOURCE_ARGUMENT); $destination = $input->getOption(self::DESTINATION_OPTION); $filename = $input->getOption(self::LICENSE_FILENAME_OPTION); // Create a new (license) file handler $handler = new Handler(); // Perform the copy $handler->copy($source, $destination, $filename); // Output trace msg $msg = sprintf('%s was successfully copied into %s', $source, $filename); $output->writeln('<info>' . $msg . '</info>'); }