Skip to content

Instantly share code, notes, and snippets.

@RaeesBhatti
Created June 5, 2016 11:35
Show Gist options
  • Save RaeesBhatti/c00e786d886202f8891de9fd9ba782c4 to your computer and use it in GitHub Desktop.
Save RaeesBhatti/c00e786d886202f8891de9fd9ba782c4 to your computer and use it in GitHub Desktop.
PHP entrypoint for HackLang app
<?php
// Loader file of your app
require(__DIR__.'/core/app-load.php');
// App class is in HackLang and takes ImmMap $Get, ImmMap $Post, ImmMap $Server, ImmMap $Cookie as parameter
new App(new HH\ImmMap($_GET), new HH\ImmMap($_POST), new HH\ImmMap($_SERVER), new HH\ImmMap($_COOKIE));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment