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