function __construct($default, $option) { $option = XUtil::safeArray($option, array('file' => false)); /* for required config check*/ if ($option['file'] === false) { throw new XStoreSqliteException('store type sqlite require option["file"]'); } $this->file = $option['file']; $this->init(); }