Made models able to load models.

This commit is contained in:
Abel Hoogeveen 2020-07-12 11:59:38 +02:00
parent 9572d27043
commit 55e0848a70
1 changed files with 6 additions and 0 deletions

View File

@ -67,12 +67,18 @@ abstract class Model
*/ */
protected $config; protected $config;
/**
* @var Models
*/
protected $models;
public function __construct() public function __construct()
{ {
$this->plugins = Factory::getInstance()->plugins; $this->plugins = Factory::getInstance()->plugins;
$this->libraries = Factory::getInstance()->libraries; $this->libraries = Factory::getInstance()->libraries;
$this->helpers = Factory::getInstance()->helpers; $this->helpers = Factory::getInstance()->helpers;
$this->config = Factory::getInstance()->config; $this->config = Factory::getInstance()->config;
$this->models = Factory::getInstance()->models;
} }
} }