Version 1
[yaffs-website] / vendor / consolidation / annotated-command / src / CommandCreationListenerInterface.php
diff --git a/vendor/consolidation/annotated-command/src/CommandCreationListenerInterface.php b/vendor/consolidation/annotated-command/src/CommandCreationListenerInterface.php
new file mode 100644 (file)
index 0000000..f3a50ea
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+namespace Consolidation\AnnotatedCommand;
+
+/**
+ * Command cration listeners can be added to the annotation
+ * command factory.  These will be notified whenever a new
+ * commandfile is provided to the factory.  This is useful for
+ * initializing new commandfile objects.
+ *
+ * @see AnnotatedCommandFactory::addListener()
+ */
+interface CommandCreationListenerInterface
+{
+    public function notifyCommandFileAdded($command);
+}