Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / league / container / src / ServiceProvider / ServiceProviderAggregateInterface.php
diff --git a/vendor/league/container/src/ServiceProvider/ServiceProviderAggregateInterface.php b/vendor/league/container/src/ServiceProvider/ServiceProviderAggregateInterface.php
new file mode 100644 (file)
index 0000000..f7b3513
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+namespace League\Container\ServiceProvider;
+
+use League\Container\ContainerAwareInterface;
+
+interface ServiceProviderAggregateInterface extends ContainerAwareInterface
+{
+    /**
+     * Add a service provider to the aggregate.
+     *
+     * @param  string|\League\Container\ServiceProvider\ServiceProviderInterface $provider
+     * @return $this
+     */
+    public function add($provider);
+
+    /**
+     * Determines whether a service is provided by the aggregate.
+     *
+     * @param  string $service
+     * @return boolean
+     */
+    public function provides($service);
+
+    /**
+     * Invokes the register method of a provider that provides a specific service.
+     *
+     * @param  string $service
+     * @return void
+     */
+    public function register($service);
+}