Made all properties of the Model, View and Controller protected.

These should not be accessible from outside these types of objects. Also made FuzeWorks core a requirement and not a dev-requirement.
merge-requests/2/head
Abel Hoogeveen 2019-03-01 11:04:12 +01:00
parent 4384ee23b1
commit f6baf1142c
No known key found for this signature in database
GPG Key ID: 96C2234920BF4292
4 changed files with 16 additions and 16 deletions

View File

@ -13,10 +13,10 @@
}
],
"require": {
"php": ">=7.1.0"
"php": ">=7.1.0",
"fuzeworks/core": "1.2.0-RC2"
},
"require-dev": {
"fuzeworks/core": "1.2.0-RC2",
"phpunit/phpunit": "^7",
"mikey179/vfsstream": "1.6.5"
},

View File

@ -49,32 +49,32 @@ abstract class Controller
/**
* @var Plugins
*/
public $plugins;
protected $plugins;
/**
* @var Libraries
*/
public $libraries;
protected $libraries;
/**
* @var Helpers
*/
public $helpers;
protected $helpers;
/**
* @var Config
*/
public $config;
protected $config;
/**
* @var Controllers
*/
public $controllers;
protected $controllers;
/**
* @var Models
*/
public $models;
protected $models;
public function __construct()
{

View File

@ -50,22 +50,22 @@ abstract class Model
/**
* @var Plugins
*/
public $plugins;
protected $plugins;
/**
* @var Libraries
*/
public $libraries;
protected $libraries;
/**
* @var Helpers
*/
public $helpers;
protected $helpers;
/**
* @var Config
*/
public $config;
protected $config;
public function __construct()
{

View File

@ -51,22 +51,22 @@ abstract class View
/**
* @var Plugins
*/
public $plugins;
protected $plugins;
/**
* @var Libraries
*/
public $libraries;
protected $libraries;
/**
* @var Helpers
*/
public $helpers;
protected $helpers;
/**
* @var Config
*/
public $config;
protected $config;
/**
* The controller associated with this view