Upgraded libraries and added objectstorage.

This commit is contained in:
Abel Hoogeveen 2021-11-29 23:06:37 +01:00
parent 2c0ce5bb43
commit 99b24155d3
Signed by: abelhooge
GPG Key ID: C540221690CBFFBA
6 changed files with 26 additions and 21 deletions

View File

@ -1,7 +1,7 @@
FuzeWorks::WebApp Component - Readme
===================
Version 1.2.0
Version 1.3.0
A versatile PHP Framework built to perform.

View File

@ -4,22 +4,18 @@
"license": ["MIT"],
"authors": [
{
"name": "TechFuze",
"homepage": "https://techfuze.net"
},
{
"name": "FuzeWorks Community",
"homepage": "https://techfuze.net/fuzeworks/contributors"
"name": "Abel Hoogeveen",
"homepage": "https://i15.nl"
}
],
"require": {
"php": ">=7.4.0",
"fuzeworks/webcomponent": "~1.2.7",
"fuzeworks/tracycomponent": "~1.2.1",
"fuzeworks/layout": "~1.2.0",
"fuzeworks/database": "~1.2.3",
"smarty/smarty": "3.1.*",
"latte/latte": "2.10.*",
"fuzeworks/webcomponent": "~1.3.0",
"fuzeworks/objectstorage": "~1.3.0",
"fuzeworks/tracycomponent": "~1.3.0",
"fuzeworks/layout": "~1.3.0",
"fuzeworks/database": "~1.3.0",
"latte/latte": "~2.5",
"ext-json": "*"
},
"autoload": {
@ -27,5 +23,4 @@
"FuzeWorks\\": "src/FuzeWorks/"
}
}
}

View File

@ -31,15 +31,17 @@
* @link http://techfuze.net/fuzeworks
* @since Version 0.0.1
*
* @version Version 1.2.0
* @version Version 1.3.0
*/
namespace FuzeWorks;
use FuzeWorks\ObjectStorage\ObjectStorageComponent;
class WebAppComponent implements iComponent
{
protected $willHandleRequest = false;
protected bool $willHandleRequest = false;
public function getName(): string
{
@ -62,6 +64,7 @@ class WebAppComponent implements iComponent
// And add the component
$configurator->addComponent($webComponent);
$configurator->addComponent(new ObjectStorageComponent());
$configurator->addComponent(new DatabaseComponent());
$configurator->addComponent(new LayoutComponent());
$configurator->addComponent(new TracyComponent());

View File

@ -31,7 +31,7 @@
* @link http://techfuze.net/fuzeworks
* @since Version 1.2.0
*
* @version Version 1.2.0
* @version Version 1.3.0
*/
namespace FuzeWorks;
@ -44,11 +44,15 @@ abstract class WebAppController extends WebController
*/
protected $databases;
/** @var ObjectStorage\ObjectStorageComponent */
protected $storage;
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');
$this->storage = Factory::getInstance('storage');
}
}

View File

@ -31,12 +31,11 @@
* @link http://techfuze.net/fuzeworks
* @since Version 1.2.0
*
* @version Version 1.2.0
* @version Version 1.3.0
*/
namespace FuzeWorks;
abstract class WebAppModel extends WebModel
{
/**
@ -44,11 +43,15 @@ abstract class WebAppModel extends WebModel
*/
protected $databases;
/** @var ObjectStorage\ObjectStorageComponent */
protected $storage;
public function __construct()
{
parent::__construct();
// Load all requirements for the WebAppModel, not yet loaded by parent Model
$this->databases = Factory::getInstance()->databases;
$this->databases = Factory::getInstance('databases');
$this->storage = Factory::getInstance('storage');
}
}

View File

@ -50,7 +50,7 @@ abstract class WebAppView extends WebView
parent::__construct();
// Load all requirements for the WebAppView, not yet loaded by parent Views
$this->layouts = Factory::getInstance()->layouts;
$this->layouts = Factory::getInstance('layouts');
}
}