/** * @param null|string $sitePath * @param null $mode */ public function __construct($sitePath, $mode = null) { self::$instance = $this; $this->sitePath = $sitePath; if (null === $mode) { $mode = (require __DIR__ . '/../config/mode.php'); } $this->configDir = __DIR__ . '/../config'; parent::__construct($mode, $this->configDir); }