X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fbehat%2Fmink-extension%2Fsrc%2FBehat%2FMinkExtension%2FServiceContainer%2FDriver%2FDriverFactory.php;fp=vendor%2Fbehat%2Fmink-extension%2Fsrc%2FBehat%2FMinkExtension%2FServiceContainer%2FDriver%2FDriverFactory.php;h=b2adf83d0244b347566f6af1ac22b5d539fd45c2;hb=1270d9129ce8f27c9b28b10518e32132c58e0aca;hp=0000000000000000000000000000000000000000;hpb=c27c0f0cdaa3f354b1fe54a56ae7e854be6e3f68;p=yaffs-website diff --git a/vendor/behat/mink-extension/src/Behat/MinkExtension/ServiceContainer/Driver/DriverFactory.php b/vendor/behat/mink-extension/src/Behat/MinkExtension/ServiceContainer/Driver/DriverFactory.php new file mode 100644 index 000000000..b2adf83d0 --- /dev/null +++ b/vendor/behat/mink-extension/src/Behat/MinkExtension/ServiceContainer/Driver/DriverFactory.php @@ -0,0 +1,52 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Behat\MinkExtension\ServiceContainer\Driver; + +use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition; +use Symfony\Component\DependencyInjection\Definition; + +/** + * @author Christophe Coevoet + */ +interface DriverFactory +{ + /** + * Gets the name of the driver being configured. + * + * This will be the key of the configuration for the driver. + * + * @return string + */ + public function getDriverName(); + + /** + * Defines whether a session using this driver is eligible as default javascript session + * + * @return boolean + */ + public function supportsJavascript(); + + /** + * Setups configuration for the driver factory. + * + * @param ArrayNodeDefinition $builder + */ + public function configure(ArrayNodeDefinition $builder); + + /** + * Builds the service definition for the driver. + * + * @param array $config + * + * @return Definition + */ + public function buildDriver(array $config); +}