| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 23 | public function __construct($app) |
||
| 24 | { |
||
| 25 | // make the app available to models |
||
| 26 | Model::inject($app); |
||
| 27 | |||
| 28 | // set up the model driver |
||
| 29 | $config = $app['config']; |
||
| 30 | $class = $config->get('models.driver'); |
||
| 31 | $this->driver = new $class($app); |
||
| 32 | Model::setDriver($this->driver); |
||
| 33 | |||
| 34 | // used for password hasing |
||
| 35 | Validator::configure(['salt' => $config->get('app.salt')]); |
||
| 36 | } |
||
| 37 | |||
| 43 |