| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function registerConnector($driver, $class) |
||
| 28 | { |
||
| 29 | 59 | $this->app->bind('db.connector.'.$driver, function ($app) use ($class) { |
|
| 30 | 55 | $connector = new $class(); |
|
| 31 | |||
| 32 | 55 | if ($app->bound('events')) { |
|
| 33 | 55 | $connector->setEventDispatcher($app['events']); |
|
| 34 | 55 | } |
|
| 35 | |||
| 36 | 55 | return $connector; |
|
| 37 | 59 | }); |
|
| 38 | 59 | } |
|
| 39 | } |
||
| 40 |