function is_stoned() { $error = error_get_last(); $errors = E_ERROR | E_PARSE | E_CORE_ERROR | E_COMPILE_ERROR | E_RECOVERABLE_ERROR; if ($error !== NULL && $error['type'] & $errors) { stoned($error); } }
} else { $stone = new Stone(); $_SESSION['stone'] = $stone; $stone->registerComponent(new RenderHTML5()); $stone->registerComponent(new DatabaseConnection()); $stone->registerComponent(new Auth()); $stone->registerComponent(new AuthLocal()); $stone->registerComponent(new Session()); $stone->registerComponent(new Wizard()); $stone->registerComponent(new Page()); // $stone->registerComponent(new Form()); // Form is not to be a component class ... $stone->registerComponent(new Address()); $stone->registerComponent(new KvK()); $stone->registerComponent(new VIES()); $stone->registerComponent(new Organisation()); $stone->registerComponent(new Person()); $stone->registerComponent(new Customer()); $stone->registerComponent(new Supplier()); $stone->registerComponent(new Project()); $stone->registerComponent(new Test_Wizard()); $stone->registerComponent(new DP_OverheidIO()); // //$stone->registerComponent(new RenderXML()); //$stone->registerComponent(new RenderJSON()); //$stone->registerComponent(new RenderHTML3()); } $stone->processRequest(); } catch (Exception $e) { stoned($e); } //------------------------------------------------------------------------------