Security update for permissions_by_term
[yaffs-website] / vendor / behat / behat / src / Behat / Behat / HelperContainer / Environment / ServiceContainerEnvironment.php
diff --git a/vendor/behat/behat/src/Behat/Behat/HelperContainer/Environment/ServiceContainerEnvironment.php b/vendor/behat/behat/src/Behat/Behat/HelperContainer/Environment/ServiceContainerEnvironment.php
new file mode 100644 (file)
index 0000000..8f58ba6
--- /dev/null
@@ -0,0 +1,38 @@
+<?php
+
+/*
+ * This file is part of the Behat.
+ * (c) Konstantin Kudryashov <ever.zet@gmail.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Behat\Behat\HelperContainer\Environment;
+
+use Behat\Testwork\Environment\Environment;
+use Psr\Container\ContainerInterface;
+
+/**
+ * Represents test environment based on a service locator pattern.
+ *
+ * @see ContextEnvironmentHandler
+ *
+ * @author Konstantin Kudryashov <ever.zet@gmail.com>
+ */
+interface ServiceContainerEnvironment extends Environment
+{
+    /**
+     * Sets/unsets service container for the environment.
+     *
+     * @param ContainerInterface|null $container
+     */
+    public function setServiceContainer(ContainerInterface $container = null);
+
+    /**
+     * Returns environment service container if set.
+     *
+     * @return null|ContainerInterface
+     */
+    public function getServiceContainer();
+}