| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | public function __construct() { |
||
| 60 | parent::__construct(); |
||
| 61 | |||
| 62 | global $wpdb; |
||
| 63 | |||
| 64 | $this->addConnection( |
||
| 65 | array( |
||
| 66 | |||
| 67 | 'driver' => 'mysql', |
||
| 68 | 'host' => $wpdb->dbhost, |
||
| 69 | 'database' => $wpdb->dbname, |
||
| 70 | 'username' => $wpdb->dbuser, |
||
| 71 | 'password' => $wpdb->dbpassword, |
||
| 72 | 'prefix' => $wpdb->prefix, |
||
| 73 | 'charset' => $wpdb->charset, |
||
| 74 | 'collation' => $wpdb->collate, |
||
| 75 | ) |
||
| 76 | ); |
||
| 77 | |||
| 78 | // Make this Capsule instance available globally. |
||
| 79 | $this->setAsGlobal(); |
||
| 80 | // Setup the Eloquent ORM. |
||
| 81 | $this->bootEloquent(); |
||
| 82 | } |
||
| 84 |