4 * This file is part of the Behat MinkExtension.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\MinkExtension\ServiceContainer\Driver;
13 use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
14 use Symfony\Component\DependencyInjection\Definition;
17 * @author Christophe Coevoet <stof@notk.org>
19 interface DriverFactory
22 * Gets the name of the driver being configured.
24 * This will be the key of the configuration for the driver.
28 public function getDriverName();
31 * Defines whether a session using this driver is eligible as default javascript session
35 public function supportsJavascript();
38 * Setups configuration for the driver factory.
40 * @param ArrayNodeDefinition $builder
42 public function configure(ArrayNodeDefinition $builder);
45 * Builds the service definition for the driver.
47 * @param array $config
51 public function buildDriver(array $config);