Version 1
[yaffs-website] / vendor / consolidation / annotated-command / src / Hooks / InteractorInterface.php
diff --git a/vendor/consolidation/annotated-command/src/Hooks/InteractorInterface.php b/vendor/consolidation/annotated-command/src/Hooks/InteractorInterface.php
new file mode 100644 (file)
index 0000000..77054e7
--- /dev/null
@@ -0,0 +1,18 @@
+<?php
+namespace Consolidation\AnnotatedCommand\Hooks;
+
+use Consolidation\AnnotatedCommand\AnnotationData;
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+
+/**
+ * Interactively supply values for missing required arguments for
+ * the current command.  Note that this hook is not called if
+ * the --no-interaction flag is set.
+ *
+ * @see HookManager::addInteractor()
+ */
+interface InteractorInterface
+{
+    public function interact(InputInterface $input, OutputInterface $output, AnnotationData $annotationData);
+}