Make constructor protected

This commit is contained in:
Sam Mousa 2018-11-19 14:14:27 +01:00
parent 245254fa57
commit 5c88c8ac2a
No known key found for this signature in database
GPG Key ID: A18520F9B4301C9D
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,8 @@ class FileUploader extends FileManager {
private $permission;
private $storage;
private function __construct() {
protected function __construct() {
parent::__construct();
$this->storage = new \Upload\Storage\FileSystem($this->getLocalPath());
}

View File

@ -4,7 +4,7 @@ trait SingletonTrait
{
private static $instance;
private function __construct()
protected function __construct()
{
}