/** * Constructor. */ public function __construct() { require __DIR__ . '/Database.php'; require __DIR__ . '/Functions.php'; require __DIR__ . '/ViewFactory.php'; parent::__construct(); }
public function __construct($configurationFilesDirectory = null) { parent::__construct(); $this->cache = array(); if ($configurationFilesDirectory === null) { $configurationFilesDirectory = __DIR__ . '/../../../config/'; } $this->directory = rtrim($configurationFilesDirectory, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; }