Upgraded libraries and added objectstorage.
This commit is contained in:
parent
2c0ce5bb43
commit
99b24155d3
|
@ -1,7 +1,7 @@
|
||||||
FuzeWorks::WebApp Component - Readme
|
FuzeWorks::WebApp Component - Readme
|
||||||
===================
|
===================
|
||||||
|
|
||||||
Version 1.2.0
|
Version 1.3.0
|
||||||
|
|
||||||
A versatile PHP Framework built to perform.
|
A versatile PHP Framework built to perform.
|
||||||
|
|
||||||
|
|
|
@ -4,22 +4,18 @@
|
||||||
"license": ["MIT"],
|
"license": ["MIT"],
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "TechFuze",
|
"name": "Abel Hoogeveen",
|
||||||
"homepage": "https://techfuze.net"
|
"homepage": "https://i15.nl"
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "FuzeWorks Community",
|
|
||||||
"homepage": "https://techfuze.net/fuzeworks/contributors"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=7.4.0",
|
"php": ">=7.4.0",
|
||||||
"fuzeworks/webcomponent": "~1.2.7",
|
"fuzeworks/webcomponent": "~1.3.0",
|
||||||
"fuzeworks/tracycomponent": "~1.2.1",
|
"fuzeworks/objectstorage": "~1.3.0",
|
||||||
"fuzeworks/layout": "~1.2.0",
|
"fuzeworks/tracycomponent": "~1.3.0",
|
||||||
"fuzeworks/database": "~1.2.3",
|
"fuzeworks/layout": "~1.3.0",
|
||||||
"smarty/smarty": "3.1.*",
|
"fuzeworks/database": "~1.3.0",
|
||||||
"latte/latte": "2.10.*",
|
"latte/latte": "~2.5",
|
||||||
"ext-json": "*"
|
"ext-json": "*"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
|
@ -27,5 +23,4 @@
|
||||||
"FuzeWorks\\": "src/FuzeWorks/"
|
"FuzeWorks\\": "src/FuzeWorks/"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,15 +31,17 @@
|
||||||
* @link http://techfuze.net/fuzeworks
|
* @link http://techfuze.net/fuzeworks
|
||||||
* @since Version 0.0.1
|
* @since Version 0.0.1
|
||||||
*
|
*
|
||||||
* @version Version 1.2.0
|
* @version Version 1.3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace FuzeWorks;
|
namespace FuzeWorks;
|
||||||
|
|
||||||
|
use FuzeWorks\ObjectStorage\ObjectStorageComponent;
|
||||||
|
|
||||||
class WebAppComponent implements iComponent
|
class WebAppComponent implements iComponent
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $willHandleRequest = false;
|
protected bool $willHandleRequest = false;
|
||||||
|
|
||||||
public function getName(): string
|
public function getName(): string
|
||||||
{
|
{
|
||||||
|
@ -62,6 +64,7 @@ class WebAppComponent implements iComponent
|
||||||
|
|
||||||
// And add the component
|
// And add the component
|
||||||
$configurator->addComponent($webComponent);
|
$configurator->addComponent($webComponent);
|
||||||
|
$configurator->addComponent(new ObjectStorageComponent());
|
||||||
$configurator->addComponent(new DatabaseComponent());
|
$configurator->addComponent(new DatabaseComponent());
|
||||||
$configurator->addComponent(new LayoutComponent());
|
$configurator->addComponent(new LayoutComponent());
|
||||||
$configurator->addComponent(new TracyComponent());
|
$configurator->addComponent(new TracyComponent());
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
* @link http://techfuze.net/fuzeworks
|
* @link http://techfuze.net/fuzeworks
|
||||||
* @since Version 1.2.0
|
* @since Version 1.2.0
|
||||||
*
|
*
|
||||||
* @version Version 1.2.0
|
* @version Version 1.3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace FuzeWorks;
|
namespace FuzeWorks;
|
||||||
|
@ -44,11 +44,15 @@ abstract class WebAppController extends WebController
|
||||||
*/
|
*/
|
||||||
protected $databases;
|
protected $databases;
|
||||||
|
|
||||||
|
/** @var ObjectStorage\ObjectStorageComponent */
|
||||||
|
protected $storage;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
// Load all the requirements for the WebAppController, not yet loaded by any of the parent controller classes
|
// Load all the requirements for the WebAppController, not yet loaded by any of the parent controller classes
|
||||||
$this->databases = Factory::getInstance('databases');
|
$this->databases = Factory::getInstance('databases');
|
||||||
|
$this->storage = Factory::getInstance('storage');
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -31,12 +31,11 @@
|
||||||
* @link http://techfuze.net/fuzeworks
|
* @link http://techfuze.net/fuzeworks
|
||||||
* @since Version 1.2.0
|
* @since Version 1.2.0
|
||||||
*
|
*
|
||||||
* @version Version 1.2.0
|
* @version Version 1.3.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace FuzeWorks;
|
namespace FuzeWorks;
|
||||||
|
|
||||||
|
|
||||||
abstract class WebAppModel extends WebModel
|
abstract class WebAppModel extends WebModel
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
@ -44,11 +43,15 @@ abstract class WebAppModel extends WebModel
|
||||||
*/
|
*/
|
||||||
protected $databases;
|
protected $databases;
|
||||||
|
|
||||||
|
/** @var ObjectStorage\ObjectStorageComponent */
|
||||||
|
protected $storage;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
// Load all requirements for the WebAppModel, not yet loaded by parent Model
|
// 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');
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -50,7 +50,7 @@ abstract class WebAppView extends WebView
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|
||||||
// Load all requirements for the WebAppView, not yet loaded by parent Views
|
// Load all requirements for the WebAppView, not yet loaded by parent Views
|
||||||
$this->layouts = Factory::getInstance()->layouts;
|
$this->layouts = Factory::getInstance('layouts');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue