diff --git a/composer.json b/composer.json index bc0741a..568369e 100644 --- a/composer.json +++ b/composer.json @@ -14,12 +14,12 @@ ], "require": { "php": ">=7.1.0", - "fuzeworks/core": "1.2.0-RC5", - "fuzeworks/mvcr": "1.2.0-RC5", - "fuzeworks/webcomponent": "1.2.0-RC5", - "fuzeworks/tracycomponent": "1.2.0-RC5", - "fuzeworks/layout": "1.2.0-RC5", - "fuzeworks/database": "1.2.0-RC6", + "fuzeworks/core": "~1.2.0", + "fuzeworks/mvcr": "~1.2.0", + "fuzeworks/webcomponent": "~1.2.0", + "fuzeworks/tracycomponent": "~1.2.0", + "fuzeworks/layout": "~1.2.0", + "fuzeworks/database": "~1.2.0", "smarty/smarty": "3.1.*", "latte/latte": "2.5.*", "ext-json": "*" diff --git a/src/FuzeWorks/WebAppController.php b/src/FuzeWorks/WebAppController.php index 860d57a..2102b5f 100644 --- a/src/FuzeWorks/WebAppController.php +++ b/src/FuzeWorks/WebAppController.php @@ -39,4 +39,16 @@ namespace FuzeWorks; abstract class WebAppController extends WebController { + /** + * @var Database + */ + protected $databases; + + public function __construct() + { + parent::__construct(); + + // Load all the requirements for the WebAppController, not yet loaded by any of the parent controller classes + $this->databases = Factory::getInstance('databases'); + } } \ No newline at end of file