/**
  * {@inheritdoc}
  */
 public function main(App $app)
 {
     if (!in_array('bixie/framework', App::system()->config('extensions'))) {
         throw new \RuntimeException('Bixie Framework required for Formmaker');
     }
     $app->on('boot', function () {
         $this->framework = App::module('bixie/framework');
     });
     $app->subscribe(new FormmakerPlugin());
 }
 protected function getSessionKey($file, $purchaseKey)
 {
     return sha1(App::system()->config('key') . '.' . App::session()->getId() . '.' . $file->id . '.' . $purchaseKey);
 }
 public function __construct()
 {
     $system = App::system();
     $this->scripts = new PackageScripts($system->path . '/scripts.php', $system->config('version'));
 }