add('stages', $this::class); $context->get('logger')->debug("Pass: ".$this::class); $cmd = $context->get('php') . ' ' . Path::makeRelative($context->get('phpdocumentor'), $context->get('cwd_directory')); $cmd .= ' -c ' . Path::makeRelative($context->get('phpdocumentor_config'), $context->get('cwd_directory')); if ($context->has('phpdocumentor_force') and $context->get('phpdocumentor_force')) { $cmd .= ' --force'; } // --sourcecode /** @var SymfonyStyle */ $io = $context->get('io'); $cmd .= match (true) { $io->isDebug() => ' -vvv', $io->isVeryVerbose() => ' -vv', $io->isVerbose() => ' -v', default => '', }; $context->get('logger')->debug("Run: ".$cmd); passthru($cmd); return $context; } }