Allowed the view to load other views and other controllers.

This commit is contained in:
Abel Hoogeveen 2020-06-13 11:54:44 +02:00
parent d6fcf1c750
commit 9572d27043
No known key found for this signature in database
GPG Key ID: 96C2234920BF4292

View File

@ -48,6 +48,16 @@ namespace FuzeWorks;
abstract class View
{
/**
* @var Controllers
*/
protected $controllers;
/**
* @var Views
*/
protected $views;
/**
* @var Plugins
*/
@ -87,6 +97,8 @@ abstract class View
public function __construct()
{
$this->controllers = Factory::getInstance()->controllers;
$this->views = Factory::getInstance()->views;
$this->plugins = Factory::getInstance()->plugins;
$this->libraries = Factory::getInstance()->libraries;
$this->helpers = Factory::getInstance()->helpers;