示例#1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $repoRoot = $input->getOption('repo-root');
     $output->writeln('installing into repository at "' . $repoRoot . '"');
     $hooker = new Hooker($this->hookerRoot, $repoRoot, $this->callingScript);
     $hooker->install();
 }
示例#2
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $repoRoot = $input->getOption('repo-root');
     $output->writeln('Executing ' . $input->getArgument('type') . ' in "' . $repoRoot . '"');
     $hooker = new Hooker($this->hookerRoot, $repoRoot, $this->callingScript);
     $out = $hooker->execute($input->getArgument('type'), $input->getArgument('git'));
     if ($out !== true) {
         list($text, $exitCode) = $out;
         $output->writeln($text);
         // symfony will use this return as the exit code
         return $exitCode;
     }
     // normal exit code
     return 0;
 }