try{ foreach($this->getResourcesByPath($class)as$class){ $this->dumpValidatorsForClass($input, $output, $class); } }catch(DirectoryNotFoundException){ $io = newSymfonyStyle($input, $output); $io->error(sprintf('Neither class nor path were found with "%s" argument.', $input->getArgument('class')));
return 1; }
return 0; }
protectedfunctionexecute(InputInterface $input, OutputInterface $output): int { $class = $input->getArgument('class');
try{ foreach($this->getResourcesByPath($class)as$class){ $this->dumpValidatorsForClass($input, $output, $class); } }catch(DirectoryNotFoundException){ $io = newSymfonyStyle($input, $output); $io->error(sprintf('Neither class nor path were found with "%s" argument.', $input->getArgument('class')));