Security update for permissions_by_term
[yaffs-website] / vendor / behat / mink-extension / src / Behat / MinkExtension / ServiceContainer / Driver / DriverFactory.php
1 <?php
2
3 /*
4  * This file is part of the Behat MinkExtension.
5  * (c) Konstantin Kudryashov <ever.zet@gmail.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 namespace Behat\MinkExtension\ServiceContainer\Driver;
12
13 use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
14 use Symfony\Component\DependencyInjection\Definition;
15
16 /**
17  * @author Christophe Coevoet <stof@notk.org>
18  */
19 interface DriverFactory
20 {
21     /**
22      * Gets the name of the driver being configured.
23      *
24      * This will be the key of the configuration for the driver.
25      *
26      * @return string
27      */
28     public function getDriverName();
29
30     /**
31      * Defines whether a session using this driver is eligible as default javascript session
32      *
33      * @return boolean
34      */
35     public function supportsJavascript();
36
37     /**
38      * Setups configuration for the driver factory.
39      *
40      * @param ArrayNodeDefinition $builder
41      */
42     public function configure(ArrayNodeDefinition $builder);
43
44     /**
45      * Builds the service definition for the driver.
46      *
47      * @param array $config
48      *
49      * @return Definition
50      */
51     public function buildDriver(array $config);
52 }