1: <?php
2: /**
3: * This file is part of the Autarky package.
4: *
5: * (c) Andreas Lutro <anlutro@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 Autarky\Database;
12:
13: interface ConnectionFactoryInterface
14: {
15: /**
16: * Create a new PDO instance.
17: *
18: * @param array $config
19: *
20: * @return \PDO
21: *
22: * @throws \InvalidArgumentException If connection is incorrectly configured
23: * @throws CannotConnectException If construction of PDO object fails
24: */
25: public function makePdo(array $config);
26: }
27: