#!/usr/bin/env php
<?php declare(strict_types=1);

use haxe\EntryPoint;
use php\Boot;
use which\Program;

// Load the dependencies.
$autoload = new SplFileInfo(__DIR__."/../../../autoload.php");
$rootPath = (new SplFileInfo(__DIR__))->getPath();
require_once $autoload->isFile() ? $autoload->getPathname() : "$rootPath/vendor/autoload.php";

// Start the application.
Boot::__hx__init();
Program::main();
EntryPoint::run();
