| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public static function create( \Aimeos\Base\Config\Iface $config, $type = 'PDO' ) |
||
| 32 | { |
||
| 33 | $classname = '\Aimeos\Base\DB\Manager\\' . $type; |
||
| 34 | |||
| 35 | if( !class_exists( $classname ) ) { |
||
| 36 | throw new \Aimeos\Base\DB\Exception( sprintf( 'File system "%1$s" not found', $type ) ); |
||
| 37 | } |
||
| 38 | |||
| 39 | return new $classname( $config ); |
||
| 40 | } |
||
| 42 |