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