/** * @param Application $app */ public function __construct(Application $app) { $this->app = $app; if (!$this->loadCache()) { $this->getConfig(); $this->saveCache(); // if we have to reload the config, we will also want to make sure the DB integrity is checked. Database\IntegrityChecker::invalidate(); } $this->setTwigPath(); $this->setCKPath(); }
public function __construct(\Bolt\Application $app) { $this->app = $app; $this->reservedfieldnames = array('id', 'slug', 'datecreated', 'datechanged', 'datepublish', 'datedepublish', 'ownerid', 'username', 'status', 'link'); if (!$this->loadCache()) { $this->getConfig(); $this->saveCache(); // if we have to reload the config, we will also want to make sure the DB integrity is checked. \Bolt\Database\IntegrityChecker::invalidate(); } $this->setTwigPath(); $this->setCKPath(); }