Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / league / container / src / ServiceProvider / SignatureServiceProviderInterface.php
diff --git a/vendor/league/container/src/ServiceProvider/SignatureServiceProviderInterface.php b/vendor/league/container/src/ServiceProvider/SignatureServiceProviderInterface.php
new file mode 100644 (file)
index 0000000..5022219
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+namespace League\Container\ServiceProvider;
+
+interface SignatureServiceProviderInterface
+{
+    /**
+     * Set a custom signature for the service provider. This enables
+     * registering the same service provider multiple times.
+     *
+     * @param  string $signature
+     * @return self
+     */
+    public function withSignature($signature);
+
+    /**
+     * The signature of the service provider uniquely identifies it, so
+     * that we can quickly determine if it has already been registered.
+     * Defaults to get_class($provider).
+     *
+     * @return string
+     */
+    public function getSignature();
+}